home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / emacssrc.zip / EMACSSRC.TAR / emacs-19.17 / etc / lnews (.txt) < prev    next >
GNU Info File  |  1993-06-08  |  133KB  |  2,394 lines

  1. This is Info file LNEWS, produced by Makeinfo-1.54 from the input file
  2. news.texi.
  3. New Features in the Lisp Language
  4. =================================
  5.    * The new function `delete' is a traditional Lisp function.  It takes
  6.      two arguments, ELT and LIST, and deletes from LIST any elements
  7.      that are equal to ELT.  It uses the function `equal' to compare
  8.      elements with ELT.
  9.    * The new function `member' is a traditional Lisp function.  It takes
  10.      two arguments, ELT and LIST, and finds the first element of LIST
  11.      that is equal to ELT.  It uses the function `equal' to compare
  12.      each list element with ELT.
  13.      The value is a sublist of LIST, whose first element is the one
  14.      that was found.  If no matching element is found, the value is
  15.      `nil'.
  16.    * The new function `indirect-function' finds the effective function
  17.      definition of an object called as a function.  If the object is a
  18.      symbol, `indirect-function' looks in the function definition of the
  19.      symbol.  It keeps doing this until it finds something that is not a
  20.      symbol.
  21.    * There are new escape sequences for use in character and string
  22.      constants.  The escape sequence `\a' is equivalent to `\C-g', the
  23.      ASCII BEL character (code 7).  The escape sequence `\x' followed
  24.      by a hexidecimal number represents the character whose ASCII code
  25.      is that number.  There is no limit on the number of digits in the
  26.      hexidecimal value.
  27.    * The function `read' when reading from a buffer now does not skip a
  28.      terminator character that terminates a symbol.  It leaves that
  29.      character to be read (or just skipped, if it is whitespace) next
  30.      time.
  31.    * When you use a function FUNCTION as the input stream for `read',
  32.      it is usually called with no arguments, and should return the next
  33.      character.  In Emacs 19, sometimes FUNCTION is called with one
  34.      argument (always a character).  When that happens, FUNCTION should
  35.      save the argument and arrange to return it when called next time.
  36.    * `random' with integer argument N returns a random number between 0
  37.      and N-1.
  38.    * The functions `documentation' and `documentation-property' now
  39.      take an additional optional argument which, if non-`nil', says to
  40.      refrain from calling `substitute-command-keys'.  This way, you get
  41.      the exact text of the documentation string as written, without the
  42.      usual substitutions.  Make sure to call `substitute-command-keys'
  43.      yourself if you decide to display the string.
  44.    * The new function `invocation-name' returns as a string the program
  45.      name that was used to run Emacs, with any directory names
  46.      discarded.
  47.    * The new function `map-y-or-n-p' makes it convenient to ask a series
  48.      of similar questions.  The arguments are PROMPTER, ACTOR, LIST,
  49.      and optional HELP.
  50.      The value of LIST is a list of objects, or a function of no
  51.      arguments to return either the next object or `nil' meaning there
  52.      are no more.
  53.      The argument PROMPTER specifies how to ask each question.  If
  54.      PROMPTER is a string, the question text is computed like this:
  55.           (format PROMPTER OBJECT)
  56.      where OBJECT is the next object to ask about.
  57.      If not a string, PROMPTER should be a function of one argument
  58.      (the next object to ask about) and should return the question text.
  59.      The argument ACTOR should be a function of one argument, which is
  60.      called with each object that the user says yes for.  Its argument
  61.      is always one object from LIST.
  62.      If HELP is given, it is a list `(OBJECT OBJECTS ACTION)', where
  63.      OBJECT is a string containing a singular noun that describes the
  64.      objects conceptually being acted on; OBJECTS is the corresponding
  65.      plural noun and ACTION is a transitive verb describing ACTOR.  The
  66.      default is `("object" "objects" "act on")'.
  67.      Each time a question is asked, the user may enter `y', `Y', or SPC
  68.      to act on that object; `n', `N', or DEL to skip that object; `!'
  69.      to act on all following objects; ESC or `q' to exit (skip all
  70.      following objects); `.' (period) to act on the current object and
  71.      then exit; or `C-h' to get help.
  72.      `map-y-or-n-p' returns the number of objects acted on.
  73.    * You can now "set" environment variables with the `setenv' command.
  74.      This works by setting the variable `process-environment', which
  75.      `getenv' now examines in preference to the environment Emacs
  76.      received from its parent.
  77. New Features for Loading Libraries
  78. ==================================
  79.    You can now arrange to run a hook if a particular Lisp library is
  80. loaded.
  81.    The variable `after-load-alist' is an alist of expressions to be
  82. evalled when particular files are loaded.  Each element looks like
  83. `(FILENAME FORMS...)'.
  84.    When `load' is run and the file name argument equals FILENAME, the
  85. FORMS in the corresponding element are executed at the end of loading.
  86. fILENAME must match exactly!  Normally FILENAME is the name of a
  87. library, with no directory specified, since that is how `load' is
  88. normally called.
  89.    An error in FORMS does not undo the load, but does prevent execution
  90. of the rest of the FORMS.
  91.    The function `eval-after-load' provides a convenient way to add
  92. entries to the alist.  Call it with two arguments, FILE and a form to
  93. execute.
  94.    The function `autoload' now supports autoloading a keymap.  Use
  95. `keymap' as the fourth argument if the autoloaded function will become
  96. a keymap when loaded.
  97.    There is a new feature for specifying which functions in a library
  98. should be autoloaded by writing special "magic" comments in that
  99. library itself.
  100.    Write `;;;###autoload' on a line by itself before the real
  101. definition of the function, in its autoloadable source file; then the
  102. command `M-x update-file-autoloads' automatically puts the `autoload'
  103. call into `loaddefs.el'.
  104.    You can also put other kinds of forms into `loaddefs.el', by writing
  105. `;;;###autoload' followed on the same line by the form.  `M-x
  106. update-file-autoloads' copies the form from that line.
  107. Compilation Features
  108. ====================
  109.    * Inline functions.
  110.      You can define an "inline function" with `defsubst'.  Use
  111.      `defsubst' just like `defun', and it defines a function which you
  112.      can call in all the usual ways.  Whenever the function thus defined
  113.      is used in compiled code, the compiler will open code it.
  114.      You can get somewhat the same effects with a macro, but a macro
  115.      has the limitation that you can use it only explicitly; a macro
  116.      cannot be called with `apply', `mapcar' and so on.  Also, it takes
  117.      some work to convert an ordinary function into a macro.  To
  118.      convert it into an inline function, simply replace `defun' with
  119.      `defsubst'.
  120.      Making a function inline makes explicit calls run faster.  But it
  121.      also has disadvantages.  For one thing, it reduces flexibility; if
  122.      you change the definition of the function, calls already inlined
  123.      still use the old definition until you recompile them.
  124.      Another disadvantage is that making a large function inline can
  125.      increase the size of compiled code both in files and in memory.
  126.      Since the advantages of inline functions are greatest for small
  127.      functions, you generally should not make large functions inline.
  128.      Inline functions can be used and open coded later on in the same
  129.      file, following the definition, just like macros.
  130.    * The command `byte-compile-file' now offers to save any buffer
  131.      visiting the file you are compiling.
  132.    * The new command `compile-defun' reads, compiles and executes the
  133.      defun containing point.  If you use this on a defun that is
  134.      actually a function definition, the effect is to install a
  135.      compiled version of that function.
  136.    * Whenever you load a Lisp file or library, you now receive a
  137.      warning if the directory contains both a `.el' file and a `.elc'
  138.      file, and the `.el' file is newer.  This typically indicates that
  139.      someone has updated the Lisp code but forgotten to recompile it,
  140.      so the changes do not take effect.  The warning is a reminder to
  141.      recompile.
  142.    * The special form `eval-when-compile' marks the forms it contains to
  143.      be evaluated at compile time *only*.  At top-level, this is
  144.      analogous to the Common Lisp idiom `(eval-when (compile) ...)'.
  145.      Elsewhere, it is similar to the Common Lisp `#.' reader macro (but
  146.      not when interpreting).
  147.      If you're thinking of using this feature, we recommend you
  148.      consider whether `provide' and `require' might do the job as well.
  149.    * The special form `eval-and-compile' is similar to
  150.      `eval-when-compile', but the whole form is evaluated both at
  151.      compile time and at run time.
  152.      If you're thinking of using this feature, we recommend you consider
  153.      whether `provide' and `require' might do the job as well.
  154.    * Emacs Lisp has a new data type for byte-code functions.  This makes
  155.      them faster to call, and also saves space.  Internally, a byte-code
  156.      function object is much like a vector; however, the evaluator
  157.      handles this data type specially when it appears as a function to
  158.      be called.
  159.      The printed representation for a byte-code function object is like
  160.      that for a vector, except that it starts with `#' before the
  161.      opening `['.  A byte-code function object must have at least four
  162.      elements; there is no maximum number, but only the first six
  163.      elements are actually used.  They are:
  164.     ARGLIST
  165.           The list of argument symbols.
  166.     BYTE-CODE
  167.           The string containing the byte-code instructions.
  168.     CONSTANTS
  169.           The vector of constants referenced by the byte code.
  170.     STACKSIZE
  171.           The maximum stack size this function needs.
  172.     DOCSTRING
  173.           The documentation string (if any); otherwise, `nil'.
  174.     INTERACTIVE
  175.           The interactive spec (if any).  This can be a string or a Lisp
  176.           expression.  It is `nil' for a function that isn't
  177.           interactive.
  178.      The predicate `byte-code-function-p' tests whether a given object
  179.      is a byte-code function.
  180.      You can create a byte-code function object in a Lisp program with
  181.      the function `make-byte-code'.  Its arguments are the elements to
  182.      put in the byte-code function object.
  183.      You should not try to come up with the elements for a byte-code
  184.      function yourself, because if they are inconsistent, Emacs may
  185.      crash when you call the function.  Always leave it to the byte
  186.      compiler to create these objects; it, we hope, always makes the
  187.      elements consistent.
  188. Floating Point Numbers
  189. ======================
  190.    You can now use floating point numbers in Emacs, if you define the
  191. macro `LISP_FLOAT_TYPE' when you compile Emacs.
  192.    The printed representation for floating point numbers requires
  193. either a decimal point surrounded by digits, or an exponent, or both.
  194. For example, `1500.0', `15e2', `15.0e2' and `1.5e3' are four ways of
  195. writing a floating point number whose value is 1500.
  196.    The existing predicate `numberp' now returns `t' if the argument is
  197. any kind of number--either integer or floating.  The new predicates
  198. `integerp' and `floatp' check for specific types of numbers.
  199.    You can do arithmetic on floating point numbers with the ordinary
  200. arithmetic functions, `+', `-', `*' and `/'.  If you call one of these
  201. functions with both integers and floating point numbers among the
  202. arguments, the arithmetic is done in floating point.  The same applies
  203. to the numeric comparison functions such as `=' and `<'.  The remainder
  204. function `%' does not accept floating point arguments, and neither do
  205. the bitwise boolean operations such as `logand' or the shift functions
  206. such as `ash'.
  207.    There is a new arithmetic function, `abs', which returns the absolute
  208. value of its argument.  It handles both integers and floating point
  209. numbers.
  210.    To convert an integer to floating point, use the function `float'.
  211. There are four functions to convert floating point numbers to integers;
  212. they differ in how they round.  `truncate' rounds toward 0, `floor'
  213. rounds down, `ceil' rounds up, and `round' produces the nearest integer.
  214.    You can use `logb' to extract the binary exponent of a floating
  215. point number.  More precisely, it is the logarithm base 2, rounded down
  216. to an integer.
  217.    Emacs has several new mathematical functions that accept any kind of
  218. number as argument, but always return floating point numbers.
  219. `cos'
  220. `sin'
  221. `tan'
  222.      Trigonometric functions.
  223. `acos'
  224. `asin'
  225. `atan'
  226.      Inverse trigonometric functions.
  227. `exp'
  228.      The exponential function (power of E).
  229. `log'
  230.      Logarithm base E.
  231. `log10'
  232.      Logarithm base 10
  233. `expt'
  234.      Raise X to power Y.
  235. `sqrt'
  236.      The square root function.
  237.    The new function `string-to-number' now parses a string containing
  238. either an integer or a floating point number, returning the number.
  239.    The `format' function now handles the specifications `%e', `%f' and
  240. `%g' for printing floating point numbers; likewise `message'.
  241.    The new variable `float-output-format' controls how Lisp prints
  242. floating point numbers.  Its value should be `nil' or a string.
  243.    If it is a string, it should contain a `%'-spec like those accepted
  244. by `printf' in C, but with some restrictions.  It must start with the
  245. two characters `%.'.  After that comes an integer which is the
  246. precision specification, and then a letter which controls the format.
  247.    The letters allowed are `e', `f' and `g'.  Use `e' for exponential
  248. notation (`DIG.DIGITSeEXPT').  Use `f' for decimal point notation
  249. (`DIGITS.DIGITS').  Use `g' to choose the shorter of those two formats
  250. for the number at hand.
  251.    The precision in any of these cases is the number of digits following
  252. the decimal point.  With `e', a precision of 0 means to omit the
  253. decimal point.  0 is not allowed with `f' or `g'.
  254.    A value of `nil' means to use the format `%.20g'.
  255.    No matter what the value of `float-output-format', printing ensures
  256. that the result fits the syntax rules for a floating point number.  If
  257. it doesn't fit (for example, if it looks like an integer), it is
  258. modified to fit.  By contrast, the `format' function formats floating
  259. point numbers without requiring the output to fit the syntax rules for
  260. floating point number.
  261. New Features for Printing And Formatting Output
  262. ===============================================
  263.    * The `format' function has a new feature: `%S'.  This print spec
  264.      prints any kind of Lisp object, even a string, using its Lisp
  265.      printed representation.
  266.      By contrast, `%s' prints everything without quotation.
  267.    * `prin1-to-string' now takes an optional second argument which says
  268.      not to print the Lisp quotation characters.  (In other words, to
  269.      use `princ' instead of `prin1'.)
  270.    * The new variable `print-level' specifies the maximum depth of list
  271.      nesting to print before cutting off all deeper structure.  A value
  272.      of `nil' means no limit.
  273. Changes in Basic Editing Functions
  274. ==================================
  275.    * There are two new primitives for putting text in the kill ring:
  276.      `kill-new' and `kill-append'.
  277.      The function `kill-new' adds a string to the front of the kill
  278.      ring.
  279.      Use `kill-append' to add a string to a previous kill.  The second
  280.      argument BEFORE-P, if non-`nil', says to add the string at the
  281.      beginning; otherwise, it goes at the end.
  282.      Both of these functions apply `interprogram-cut-function' to the
  283.      entire string of killed text that ends up at the beginning of the
  284.      kill ring.
  285.    * The new function `current-kill' rotates the yanking pointer in the
  286.      kill ring by N places, and returns the text at that place in the
  287.      ring.  If the optional second argument DO-NOT-MOVE is non-`nil',
  288.      it doesn't actually move the yanking point; it just returns the
  289.      Nth kill forward.  If N is zero, indicating a request for the
  290.      latest kill, `current-kill' calls `interprogram-paste-function'
  291.      (documented below) before consulting the kill ring.
  292.      All Emacs Lisp programs should either use `current-kill',
  293.      `kill-new', and `kill-append' to manipulate the kill ring, or be
  294.      sure to call `interprogram-paste-function' and
  295.      `interprogram-cut-function' as appropriate.
  296.    * The variables `interprogram-paste-function' and
  297.      `interprogram-cut-function' exist so that you can provide functions
  298.      to transfer killed text to and from other programs.
  299.    * The `kill-region' function can now be used in read-only buffers.
  300.      It beeps, but adds the region to the kill ring without deleting it.
  301.    * The new function `compare-buffer-substrings' lets you compare two
  302.      substrings of the same buffer or two different buffers.  Its
  303.      arguments look like this:
  304.           (compare-buffer-substrings BUF1 BEG1 END1 BUF2 BEG2 END2)
  305.      The first three arguments specify one substring, giving a buffer
  306.      and two positions within the buffer.  The last three arguments
  307.      specify the other substring in the same way.
  308.      The value is negative if the first substring is less, positive if
  309.      the first is greater, and zero if they are equal.  The absolute
  310.      value of the result is one plus the index of the first different
  311.      characters.
  312.    * Overwrite mode treats tab and newline characters specially.  You
  313.      can now turn off this special treatment by setting
  314.      `overwrite-binary-mode' to `t'.
  315.    * Once the mark "exists" in a buffer, it normally never ceases to
  316.      exist.  However, in Transient Mark mode, it may become "inactive".
  317.      The variable `mark-active', which is always local in all buffers,
  318.      indicates whether the mark is active: non-`nil' means yes.
  319.      When the mark is inactive, the function `mark' normally gets an
  320.      error.  However, `(mark t)' returns the position of the inactive
  321.      mark.
  322.      The function `push-mark' normally does not activate the mark.
  323.      However, it accepts an optional third argument ACTIVATE which, if
  324.      non-`nil', says to activate.
  325.      A command can request deactivation of the mark upon return to the
  326.      editor command loop by setting `deactivate-mark' to a non-`nil'
  327.      value.  Transient Mark mode works by causing the command loop to
  328.      take note of `deactivate-mark' and actually deactivate the mark.
  329.      Transient Mark mode enables highlighting of the region when the
  330.      mark is active.  This is currently implemented only under the X
  331.      Window System.  A few other commands vary their behavior slightly
  332.      in this case, by testing `transient-mark-mode'.  More
  333.      specifically, they avoid special display actions such as moving
  334.      the cursor temporarily, which are not needed when the region is
  335.      shown by highlighting.
  336.      The variables `activate-mark-hook' and `deactivate-mark-hook' are
  337.      normal hooks run, respectively, when the mark becomes active and
  338.      when it becomes inactive.  The hook `activate-mark-hook' is also
  339.      run at the end of a command if the mark is active and the region
  340.      may have changed.
  341.    * The function `move-to-column' now accepts a second optional
  342.      argument FORCE, in addition to COLUMN; if the requested column
  343.      COLUMN is in the middle of a tab character and FORCE is non-`nil',
  344.      `move-to-column' replaces the tab with the appropriate sequence of
  345.      spaces so that it can place point exactly at COLUMN.
  346.    * The search functions when successful now return the value of point
  347.      rather than just `t'.  This affects the functions
  348.      `search-forward', `search-backward', `word-search-forward',
  349.      `word-search-backward', `re-search-forward', and
  350.      `re-search-backward'.
  351.    * When you do regular expression searching or matching, there is no
  352.      longer a limit to how many `\(...\)' pairs you can get information
  353.      about with `match-beginning' and `match-end'.  Also, these
  354.      parenthetical groupings may now be nested to any degree.
  355.    * In a regular expression, when you use an asterisk after a
  356.      parenthetical grouping, and then ask about what range was matched
  357.      by the grouping, Emacs 19 reports just its last occurrence.  Emacs
  358.      18 used to report the range of all the repetitions put together.
  359.      For example,
  360.           (progn
  361.            (string-match "f\\(o\\)*" "foo")
  362.            (list (match-beginning 1)
  363.                  (match-end 1)))
  364.      returns `(2 3)' in Emacs 19, corresponding to just the last
  365.      repetition of `\(o\)'.  In Emacs 18, that expression returns `(1
  366.      3)', encompassing both repetitions.
  367.      If you want the Emacs 18 behavior, use a grouping *containing* the
  368.      asterisk: `"f\\(o*\\)"'.
  369.    * The new special form `save-match-data' preserves the regular
  370.      expression match status.  Usage: `(save-match-data BODY...)'.
  371.    * The function `translate-region' applies a translation table to the
  372.      characters in a part of the buffer.  Invoke it as
  373.      `(translate-region START END TABLE)'; START and END bound the
  374.      region to translate.
  375.      The translation table TABLE is a string; `(aref TABLE OCHAR)'
  376.      gives the translated character corresponding to OCHAR.  If the
  377.      length of TABLE is less than 256, any characters with codes larger
  378.      than the length of TABLE are not altered by the translation.
  379.      `translate-region' returns the number of characters which were
  380.      actually changed by the translation.  This does not count
  381.      characters which were mapped into themselves in the translation
  382.      table.
  383.    * There are two new hook variables that let you notice all changes
  384.      in all buffers (or in a particular buffer, if you make them
  385.      buffer-local): `before-change-function' and
  386.      `after-change-function'.
  387.      If `before-change-function' is non-`nil', then it is called before
  388.      any buffer modification.  Its arguments are the beginning and end
  389.      of the region that is going to change, represented as integers.
  390.      The buffer that's about to change is always the current buffer.
  391.      If `after-change-function' is non-`nil', then it is called after
  392.      any buffer modification.  It takes three arguments: the beginning
  393.      and end of the region just changed, and the length of the text that
  394.      existed before the change.  (To get the current length, subtract
  395.      the region beginning from the region end.)  All three arguments are
  396.      integers.  The buffer that has just changed is always the current
  397.      buffer.
  398.      Both of these variables are temporarily bound to `nil' during the
  399.      time that either of these hooks is running.  This means that if
  400.      one of these functions changes the buffer, that change won't run
  401.      these functions.  If you do want hooks to be run recursively,
  402.      write your hook functions to bind these variables back to their
  403.      usual values.
  404.    * The hook `first-change-hook' is run using `run-hooks' whenever a
  405.      buffer is changed that was previously in the unmodified state.
  406.    * The second argument to `insert-abbrev-table-description' is now
  407.      optional.
  408. Text Properties
  409. ===============
  410.    Each character in a buffer or a string can have a "text property
  411. list", much like the property list of a symbol.  The properties belong
  412. to a particular character at a particular place, such as, the letter
  413. `T' at the beginning of this sentence.  Each property has a name, which
  414. is usually a symbol, and an associated value, which can be any Lisp
  415. object--just as for properties of symbols.
  416.    You can use the property `face' to control the font and color of
  417. text.  Several other property names have special meanings.  You can
  418. create properties of any name and examine them later for your own
  419. purposes.
  420.    Copying text between strings and buffers preserves the properties
  421. along with the characters; this includes such diverse functions as
  422. `substring', `insert', and `buffer-substring'.
  423.    Since text properties are considered part of the buffer contents,
  424. changing properties in a buffer "modifies" the buffer, and you can also
  425. undo such changes.
  426.    Strings with text properties have a special printed representation
  427. which describes all the properties.  This representation is also the
  428. read syntax for such a string.  It looks like this:
  429.      #("CHARACTERS" PROPERTY-DATA...)
  430. where PROPERTY-DATA is zero or more elements in groups of three as
  431. follows:
  432.      BEG END PLIST
  433. The elements BEG and END are integers, and together specify a portion
  434. of the string; PLIST is the property list for that portion.
  435. Examining Text Properties
  436. -------------------------
  437.    The simplest way to examine text properties is to ask for the value
  438. of a particular property of a particular character.  For that, use
  439. `get-text-property'.  Use `text-properties-at' to get the entire
  440. property list of a character.
  441.    `(get-text-property POS PROP OBJECT)' returns the PROP property of
  442. the character after POS in OBJECT (a buffer or string).  The argument
  443. OBJECT is optional and defaults to the current buffer.
  444.    `(text-properties-at POS OBJECT)' returns the entire property list
  445. of the character after POS in the string or buffer OBJECT (which
  446. defaults to the current buffer).
  447. Changing Text Properties
  448. ------------------------
  449.    There are four primitives for changing properties of a specified
  450. range of text:
  451. `add-text-properties'
  452.      This function puts on specified properties, leaving other existing
  453.      properties unaltered.
  454. `put-text-property'
  455.      This function puts on a single specified property, leaving others
  456.      unaltered.
  457. `remove-text-properties'
  458.      This function removes specified properties, leaving other
  459.      properties unaltered.
  460. `set-text-properties'
  461.      This function replaces the entire property list, leaving no
  462.      vestige of the properties that that text used to have.
  463.    All these functions take four arguments: START, END, PROPS, and
  464. OBJECT.  The last argument is optional and defaults to the current
  465. buffer.  The argument PROPS has the form of a property list.
  466. Property Search Functions
  467. -------------------------
  468.    In typical use of text properties, most of the time several or many
  469. consecutive characters have the same value for a property.  Rather than
  470. writing your programs to examine characters one by one, it is much
  471. faster to process chunks of text that have the same property value.
  472.    The functions `next-property-change' and `previous-property-change'
  473. scan forward or backward from position POS in OBJECT, looking for a
  474. change in any property between two characters scanned.  They returns
  475. the position between those two characters, or `nil' if no change is
  476. found.
  477.    The functions `next-single-property-change' and
  478. `previous-single-property-change' are similar except that you specify a
  479. particular property and they look for changes in the value of that
  480. property only.  The property is the second argument, and OBJECT is
  481. third.
  482. Special Properties
  483. ------------------
  484.    If a character has a `category' property, we call it the "category"
  485. of the character.  It should be a symbol.  The properties of the symbol
  486. serve as defaults for the properties of the character.
  487.    You can use the property `face' to control the font and color of
  488. text.
  489.    You can specify a different keymap for a portion of the text by means
  490. of a `local-map' property.  The property's value, for the character
  491. after point, replaces the buffer's local map.
  492.    If a character has the property `read-only', then modifying that
  493. character is not allowed.  Any command that would do so gets an error.
  494.    If a character has the property `modification-hooks', then its value
  495. should be a list of functions; modifying that character calls all of
  496. those functions.  Each function receives two arguments: the beginning
  497. and end of the part of the buffer being modified.  Note that if a
  498. particular modification hook function appears on several characters
  499. being modified by a single primitive, you can't predict how many times
  500. the function will be called.
  501.    Insertion of text does not, strictly speaking, change any existing
  502. character, so there is a special rule for insertion.  It compares the
  503. `read-only' properties of the two surrounding characters; if they are
  504. `eq', then the insertion is not allowed.  Assuming insertion is
  505. allowed, it then gets the `modification-hooks' properties of those
  506. characters and calls all the functions in each of them.  (If a function
  507. appears on both characters, it may be called once or twice.)
  508.    The special properties `point-entered' and `point-left' record hook
  509. functions that report motion of point.  Each time point moves, Emacs
  510. compares these two property values:
  511.    * the `point-left' property of the character after the old location,
  512.      and
  513.    * the `point-entered' property of the character after the new
  514.      location.
  515. If these two values differ, each of them is called (if not `nil') with
  516. two arguments: the old value of point, and the new one.
  517.    The same comparison is made for the characters before the old and new
  518. locations.  The result may be to execute two `point-left' functions
  519. (which may be the same function) and/or two `point-entered' functions
  520. (which may be the same function).  The `point-left' functions are
  521. always called before the `point-entered' functions.
  522.    A primitive function may examine characters at various positions
  523. without moving point to those positions.  Only an actual change in the
  524. value of point runs these hook functions.
  525. New Features for Files
  526. ======================
  527.    * The new function `file-accessible-directory-p' tells you whether
  528.      you can open files in a particular directory.  Specify as an
  529.      argument either a directory name or a file name which names a
  530.      directory file.  The function returns `t' if you can open existing
  531.      files in that directory.
  532.    * The new function `file-executable-p' returns `t' if its argument
  533.      is the name of a file you have permission to execute.
  534.    * The function `file-truename' returns the "true name" of a
  535.      specified file.  This is the name that you get by following
  536.      symbolic links until none remain.  The argument must be an
  537.      absolute file name.
  538.    * New functions `make-directory' and `delete-directory' create and
  539.      delete directories.  They both take one argument, which is the
  540.      name of the directory as a file.
  541.    * The function `read-file-name' now takes an additional argument
  542.      which specifies an initial file name.  If you specify this
  543.      argument, `read-file-name' inserts it along with the directory
  544.      name.  It puts the cursor between the directory and the initial
  545.      file name.
  546.      The user can then use the initial file name unchanged, modify it,
  547.      or simply kill it with `C-k'.
  548.      If the variable `insert-default-directory' is `nil', then the
  549.      default directory is not inserted, and the new argument is ignored.
  550.    * The function `file-relative-name' does the inverse of
  551.      expansion--it tries to return a relative name which is equivalent
  552.      to FILENAME when interpreted relative to DIRECTORY.  (If such a
  553.      relative name would be longer than the absolute name, it returns
  554.      the absolute name instead.)
  555.    * The function `file-newest-backup' returns the name of the most
  556.      recent backup file for FILENAME, or `nil' that file has no backup
  557.      files.
  558.    * The list returned by `file-attributes' now has 12 elements.  The
  559.      12th element is the file system number of the file system that the
  560.      file is in.  This element together with the file's inode number,
  561.      which is the 11th element, give enough information to distinguish
  562.      any two files on the system--no two files can have the same values
  563.      for both of these numbers.
  564.    * The new function `set-visited-file-modtime' updates the current
  565.      buffer's recorded modification time from the visited file's time.
  566.      This is useful if the buffer was not read from the file normally,
  567.      or if the file itself has been changed for some known benign
  568.      reason.
  569.      If you give the function an argument, that argument specifies the
  570.      new value for the recorded modification time.  The argument should
  571.      be a list of the form `(HIGH . LOW)' or `(HIGH LOW)' containing
  572.      two integers, each of which holds 16 bits of the time.  (This is
  573.      the same format that `file-attributes' uses to return time values.)
  574.      The new function `visited-file-modtime' returns the recorded last
  575.      modification time, in that same format.
  576.    * The function `directory-files' now takes an optional fourth
  577.      argument which, if non-`nil', inhibits sorting the file names.
  578.      Use this if you want the utmost possible speed and don't care what
  579.      order the files are processed in.
  580.      If the order of processing is at all visible to the user, then the
  581.      user will probably be happier if you do sort the names.
  582.    * The variable `directory-abbrev-alist' contains an alist of
  583.      abbreviations to use for file directories.  Each element has the
  584.      form `(FROM . TO)', and says to replace FROM with TO when it
  585.      appears in a directory name.  This replacement is done when
  586.      setting up the default directory of a newly visited file.  The
  587.      FROM string is actually a regular expression; it should always
  588.      start with `^'.
  589.      You can set this variable in `site-init.el' to describe the
  590.      abbreviations appropriate for your site.
  591.    * The function `abbreviate-file-name' applies abbreviations from
  592.      `directory-abbrev-alist' to its argument, and substitutes `~' for
  593.      the user's home directory.
  594.      Abbreviated directory names are useful for directories that are
  595.      normally accessed through symbolic links.  If you think of the
  596.      link's name as "the name" of the directory, you can define it as
  597.      an abbreviation for the directory's official name; then ordinarily
  598.      Emacs will call that directory by the link name you normally use.
  599.    * `write-region' can write a given string instead of text from the
  600.      buffer.  Use the string as the first argument (in place of the
  601.      starting character position).
  602.      You can supply a second file name as the fifth argument (VISIT).
  603.      Use this to write the data to one file (the first argument,
  604.      FILENAME) while nominally visiting a different file (the fifth
  605.      argument, VISIT).  The argument VISIT is used in the echo area
  606.      message and also for file locking; VISIT is stored in
  607.      `buffer-file-name'.
  608.    * The value of `write-file-hooks' does not change when you switch to
  609.      a new major mode.  The intention is that these hooks have to do
  610.      with where the file came from, and not with what it contains.
  611.    * There is a new hook variable for saving files:
  612.      `write-contents-hooks'.  It works just like `write-file-hooks'
  613.      except that switching to a new major mode clears it back to `nil'.
  614.      Major modes should use this hook variable rather than
  615.      `write-file-hooks'.
  616.    * The hook `after-save-hook' runs just after a buffer has been saved
  617.      in its visited file.
  618.    * The new function `set-default-file-modes' sets the file protection
  619.      for new files created with Emacs.  The argument must be an
  620.      integer.  (It would be better to permit symbolic arguments like
  621.      the `chmod' program, but that would take more work than this
  622.      function merits.)
  623.      Use the new function `default-file-modes' to read the current
  624.      default file mode.
  625.    * Call the new function `unix-sync' to force all pending disk output
  626.      to happen as soon as possible.
  627. Making Certain File Names "Magic"
  628. =================================
  629.    You can implement special handling for a class of file names.  You
  630. must supply a regular expression to define the class of names (all those
  631. which match the regular expression), plus a handler that implements all
  632. the primitive Emacs file operations for file names that do match.
  633.    The value of `file-name-handler-alist' is a list of handlers,
  634. together with regular expressions that decide when to apply each
  635. handler.  Each element has the form `(REGEXP . HANDLER)'.  If a file
  636. name matches REGEXP, then all work on that file is done by calling
  637. HANDLER.
  638.    All the Emacs primitives for file access and file name transformation
  639. check the given file name against `file-name-handler-alist', and call
  640. HANDLER to do the work if appropriate.  The first argument given to
  641. HANDLER is the name of the primitive; the remaining arguments are the
  642. arguments that were passed to that primitive.  (The first of these
  643. arguments is typically the file name itself.)  For example, if you do
  644. this:
  645.      (file-exists-p FILENAME)
  646. and FILENAME has handler HANDLER, then HANDLER is called like this:
  647.      (funcall HANDLER 'file-exists-p FILENAME)
  648.    Here are the primitives that you can handle in this way:
  649.      `add-name-to-file', `copy-file', `delete-directory',
  650.      `delete-file', `directory-file-name', `directory-files',
  651.      `dired-compress-file', `dired-uncache', `expand-file-name',
  652.      `file-accessible-directory-p', `file-attributes',
  653.      `file-directory-p', `file-executable-p', `file-exists-p',
  654.      `file-local-copy', `file-modes', `file-name-all-completions',
  655.      `file-name-as-directory', `file-name-completion',
  656.      `file-name-directory', `file-name-nondirectory',
  657.      `file-name-sans-versions', `file-newer-than-file-p',
  658.      `file-readable-p', `file-symlink-p', `file-writable-p',
  659.      `insert-directory', `insert-file-contents', `load',
  660.      `make-directory', `make-symbolic-link', `rename-file',
  661.      `set-file-modes', `set-visited-file-modtime',
  662.      `unhandled-file-name-directory', `verify-visited-file-modtime',
  663.      `write-region'.
  664.    The handler function must handle all of the above operations, and
  665. possibly others to be added in the future.  Therefore, it should always
  666. reinvoke the ordinary Lisp primitive when it receives an operation it
  667. does not recognize.  Here's one way to do this:
  668.      (defun my-file-handler (operation &rest args)
  669.        ;; First check for the specific operations
  670.        ;; that we have special handling for.
  671.        (cond ((eq operation 'insert-file-contents) ...)
  672.              ((eq operation 'write-region) ...)
  673.              ...
  674.              ;; Handle any operation we don't know about.
  675.              (t (let (file-name-handler-alist)
  676.                   (apply operation args)))))
  677.    The function `file-local-copy' copies file FILENAME to the local
  678. site, if it isn't there already.  If FILENAME specifies a "magic" file
  679. name which programs outside Emacs cannot directly read or write, this
  680. copies the contents to an ordinary file and returns that file's name.
  681.    If FILENAME is an ordinary file name, not magic, then this function
  682. does nothing and returns `nil'.
  683.    The function `unhandled-file-name-directory' is used to get a
  684. non-magic directory name from an arbitrary file name.  It uses the
  685. directory part of the specified file name if that is not magic.
  686. Otherwise, it asks the file name's handler what to do.
  687. Frames
  688. ======
  689.    Emacs now supports multiple X windows via a new data type known as a
  690. "frame".
  691.    A frame is a rectangle on the screen that contains one or more Emacs
  692. windows.  Subdividing a frame works just like subdividing the screen in
  693. earlier versions of Emacs.
  694.    There are two kinds of frames: terminal frames and X window frames.
  695. Emacs creates one terminal frame when it starts up with no X display; it
  696. uses Termcap or Terminfo to display using characters.  There is no way
  697. to create another terminal frame after startup.  If Emacs has an X
  698. display, it does not make a terminal frame, and there is none.
  699.    When you are using X windows, Emacs starts out with a single X window
  700. frame.  You can create any number of X window frames using `make-frame'.
  701.    Use the predicate `framep' to determine whether a given Lisp object
  702. is a frame.
  703.    The function `redraw-frame' redisplays the entire contents of a
  704. given frame.
  705. Creating and Deleting Frames
  706. ----------------------------
  707.    Use `make-frame' to create a new frame.  This is the only primitive
  708. for creating frames.  In principle it could work under any window system
  709. which Emacs understands; the only one we support is X.
  710.    `make-frame' takes just one argument, which is an alist specifying
  711. frame parameters.  Any parameters not mentioned in the argument alist
  712. default based on the value of `default-frame-alist'; parameters not
  713. specified there default from the standard X defaults file and X
  714. resources.
  715.    When you invoke Emacs, if you specify arguments for window appearance
  716. and so forth, these go into `default-frame-alist' and that is how they
  717. have their effect.
  718.    You can specify the parameters for the initial startup X window
  719. frame by setting `initial-frame-alist' in your `.emacs' file.  If these
  720. parameters specify a separate minibuffer-only frame, and you have not
  721. created one, Emacs creates one for you, using the parameter values
  722. specified in `minibuffer-frame-alist'.
  723.    You can specify the size and position of a frame using the frame
  724. parameters `left', `top', `height' and `width'.  You must specify
  725. either both size parameters or neither.  You must specify either both
  726. position parameters or neither.  The geometry parameters that you don't
  727. specify are chosen by the window manager in its usual fashion.
  728.    The function `x-parse-geometry' converts a standard X-style geometry
  729. string to an alist which you can use as part of the argument to
  730. `make-frame'.
  731.    Use the function `delete-frame' to eliminate a frame.  Frames are
  732. like buffers where deletion is concerned; a frame actually continues to
  733. exist as a Lisp object until it is deleted *and* there are no
  734. references to it, but once it is deleted, it has no further effect on
  735. the screen.
  736.    The function `frame-live-p' returns non-`nil' if the argument (a
  737. frame) has not been deleted.
  738. Finding All Frames
  739. ------------------
  740.    The function `frame-list' returns a list of all the frames that have
  741. not been deleted.  It is analogous to `buffer-list'.  The list that you
  742. get is newly created, so modifying the list doesn't have any effect on
  743. the internals of Emacs.  The function `visible-frame-list' returns the
  744. list of just the frames that are visible.
  745.    `next-frame' lets you cycle conveniently through all the frames from
  746. an arbitrary starting point.  Its first argument is a frame.  Its second
  747. argument MINIBUF says what to do about minibuffers:
  748. `nil'
  749.      Exclude minibuffer-only frames.
  750. a window
  751.      Consider only the frames using that particular window as their
  752.      minibuffer.
  753. anything else
  754.      Consider all frames.
  755. Frames and Windows
  756. ------------------
  757.    All the non-minibuffer windows in a frame are arranged in a tree of
  758. subdivisions; the root of this tree is available via the function
  759. `frame-root-window'.  Each window is part of one and only one frame;
  760. you can get the frame with `window-frame'.
  761.    At any time, exactly one window on any frame is "selected within the
  762. frame".  You can get the frame's current selected window with
  763. `frame-selected-window'.  The significance of this designation is that
  764. selecting the frame selects for Emacs as a whole the window currently
  765. selected within that frame.
  766.    Conversely, selecting a window for Emacs with `select-window' also
  767. makes that window selected within its frame.
  768. Frame Visibility
  769. ----------------
  770.    A frame may be "visible", "invisible", or "iconified".  If it is
  771. invisible, it doesn't show in the screen, not even as an icon.  You can
  772. set the visibility status of a frame with `make-frame-visible',
  773. `make-frame-invisible', and `iconify-frame'.  You can examine the
  774. visibility status with `frame-visible-p'--it returns `t' for a visible
  775. frame, `nil' for an invisible frame, and `icon' for an iconified frame.
  776. Selected Frame
  777. --------------
  778.    At any time, one frame in Emacs is the "selected frame".  The
  779. selected window always resides on the selected frame.
  780.  - Function: selected-frame
  781.      This function returns the selected frame.
  782.    The X server normally directs keyboard input to the X window that the
  783. mouse is in.  Some window managers use mouse clicks or keyboard events
  784. to "shift the focus" to various X windows, overriding the normal
  785. behavior of the server.
  786.    Lisp programs can switch frames "temporarily" by calling the function
  787. `select-frame'.  This does not override the window manager; rather, it
  788. escapes from the window manager's control until that control is somehow
  789. reasserted.  The function takes one argument, a frame, and selects that
  790. frame.  The selection lasts until the next time the user does something
  791. to select a different frame, or until the next time this function is
  792. called.
  793.    Emacs cooperates with the X server and the window managers by
  794. arranging to select frames according to what the server and window
  795. manager ask for.  It does so by generating a special kind of input
  796. event, called a "focus" event.  The command loop handles a focus event
  797. by calling `internal-select-frame'.
  798. Frame Size and Position
  799. -----------------------
  800.    The new functions `frame-height' and `frame-width' return the height
  801. and width of a specified frame (or of the selected frame), measured in
  802. characters.
  803.    The new functions `frame-pixel-height' and `frame-pixel-width'
  804. return the height and width of a specified frame (or of the selected
  805. frame), measured in pixels.
  806.    The new functions `frame-char-height' and `frame-char-width' return
  807. the height and width of a character in a specified frame (or in the
  808. selected frame), measured in pixels.
  809.    `set-frame-size' sets the size of a frame, measured in characters;
  810. its arguments are FRAME, COLS and ROWS.  To set the size with values
  811. measured in pixels, you can use `modify-frame-parameters'.
  812.    The function `set-frame-position' sets the position of the top left
  813. corner of a frame.  Its arguments are FRAME, LEFT and TOP.
  814. Frame Parameters
  815. ----------------
  816.    A frame has many parameters that affect how it displays.  Use the
  817. function `frame-parameters' to get an alist of all the parameters of a
  818. given frame.  To alter parameters, use `modify-frame-parameters', which
  819. takes two arguments: the frame to modify, and an alist of parameters to
  820. change and their new values.  Each element of ALIST has the form `(PARM
  821. . VALUE)', where PARM is a symbol.  Parameters that aren't meaningful
  822. are ignored.  If you don't mention a parameter in ALIST, its value
  823. doesn't change.
  824.    Just what parameters a frame has depends on what display mechanism it
  825. uses.  Here is a table of the parameters of an X window frame:
  826. `name'
  827.      The name of the frame.
  828. `left'
  829.      The screen position of the left edge.
  830. `top'
  831.      The screen position of the top edge.
  832. `height'
  833.      The height of the frame contents, in pixels.
  834. `width'
  835.      The width of the frame contents, in pixels.
  836. `window-id'
  837.      The number of the X window for the frame.
  838. `minibuffer'
  839.      Whether this frame has its own minibuffer.  `t' means yes, `none'
  840.      means no, `only' means this frame is just a minibuffer, a
  841.      minibuffer window (in some other frame) means the new frame uses
  842.      that minibuffer.
  843. `font'
  844.      The name of the font for the text.
  845. `foreground-color'
  846.      The color to use for the inside of a character.  Use strings to
  847.      designate colors; the X server defines the meaningful color names.
  848. `background-color'
  849.      The color to use for the background of text.
  850. `mouse-color'
  851.      The color for the mouse cursor.
  852. `cursor-color'
  853.      The color for the cursor that shows point.
  854. `border-color'
  855.      The color for the border of the frame.
  856. `cursor-type'
  857.      The way to display the cursor.  There are two legitimate values:
  858.      `bar' and `box'.  The value `bar' specifies a vertical bar between
  859.      characters as the cursor.  The value `box' specifies an ordinary
  860.      black box overlaying the character after point; that is the
  861.      default.
  862. `icon-type'
  863.      Non-`nil' for a bitmap icon, `nil' for a text icon.
  864. `border-width'
  865.      The width in pixels of the window border.
  866. `internal-border-width'
  867.      The distance in pixels between text and border.
  868. `auto-raise'
  869.      Non-`nil' means selecting the frame raises it.
  870. `auto-lower'
  871.      Non-`nil' means deselecting the frame lowers it.
  872. `vertical-scroll-bars'
  873.      Non-`nil' gives the frame a scroll bar for vertical scrolling.
  874. Minibufferless Frames
  875. ---------------------
  876.    Normally, each frame has its own minibuffer window at the bottom,
  877. which is used whenever that frame is selected.  However, you can also
  878. create frames with no minibuffers.  These frames must use the
  879. minibuffer window of some other frame.
  880.    The variable `default-minibuffer-frame' specifies where to find a
  881. minibuffer for frames created without minibuffers of their own.  Its
  882. value should be a frame which does have a minibuffer.
  883.    You can also specify a minibuffer window explicitly when you create a
  884. frame; then `default-minibuffer-frame' is not used.
  885. X Window System Features
  886. ========================
  887.    * The new functions `mouse-position' and `set-mouse-position' give
  888.      access to the current position of the mouse.
  889.      `mouse-position' returns a description of the position of the
  890.      mouse.  The value looks like `(FRAME X . Y)', where X and Y are
  891.      measured in pixels relative to the top left corner of the inside
  892.      of FRAME.
  893.      `set-mouse-position' takes three arguments, FRAME, X and Y, and
  894.      warps the mouse cursor to that location on the screen.
  895.    * `track-mouse' is a new special form for tracking mouse motion.
  896.      Use it in definitions of mouse clicks that want pay to attention to
  897.      the motion of the mouse, not just where the buttons are pressed and
  898.      released.  Here is how to use it:
  899.           (track-mouse BODY...)
  900.      While BODY executes, mouse motion generates input events just as
  901.      mouse clicks do.  BODY can read them with `read-event' or
  902.      `read-key-sequence'.
  903.      `track-mouse' returns the value of the last form in BODY.
  904.      The format of these events is described under "New Input Event
  905.      Formats."
  906.    * `x-set-selection' sets a "selection" in the X server.  It takes
  907.      two arguments: a selection type TYPE, and the value to assign to
  908.      it, DATA.  If DATA is `nil', it means to clear out the selection.
  909.      Otherwise, DATA may be a string, a symbol, an integer (or a cons
  910.      of two integers or list of two integers), or a cons of two markers
  911.      pointing to the same buffer.  In the last case, the selection is
  912.      considered to be the text between the markers.  The data may also
  913.      be a vector of valid non-vector selection values.
  914.      Each possible TYPE has its own selection value, which changes
  915.      independently.  The usual values of TYPE are `PRIMARY' and
  916.      `SECONDARY'; these are symbols with upper-case names, in accord
  917.      with X protocol conventions.  The default is `PRIMARY'.
  918.      To get the value of the selection, call `x-get-selection'.  This
  919.      function accesses selections set up by Emacs and those set up by
  920.      other X clients.  It takes two optional arguments, TYPE and
  921.      DATA-TYPE.  The default for TYPE is `PRIMARY'.
  922.      The DATA-TYPE argument specifies the form of data conversion to
  923.      use; meaningful values include `TEXT', `STRING', `TARGETS',
  924.      `LENGTH', `DELETE', `FILE_NAME', `CHARACTER_POSITION',
  925.      `LINE_NUMBER', `COLUMN_NUMBER', `OWNER_OS', `HOST_NAME', `USER',
  926.      `CLASS', `NAME', `ATOM', and `INTEGER'.  (These are symbols with
  927.      upper-case names in accord with X Windows conventions.) The
  928.      default for DATA-TYPE is `STRING'.
  929.    * The X server has a set of numbered "cut buffers" which can store
  930.      text or other data being moved between applications.  Use
  931.      `x-get-cut-buffer' to get the contents of a cut buffer; specify the
  932.      cut buffer number as argument.  Use `x-set-cut-buffer' with
  933.      argument STRING to store a new string into the first cut buffer
  934.      (moving the other values down through the series of cut buffers,
  935.      kill-ring-style).
  936.      Cut buffers are considered obsolete, but Emacs supports them for
  937.      the sake of X clients that still use them.
  938.    * You can close the connection with the X server with the function
  939.      `x-close-current-connection'.  This takes no arguments.
  940.      Then you can connect to a different X server with
  941.      `x-open-connection'.  The first argument, DISPLAY, is the name of
  942.      the display to connect to.
  943.      The optional second argument XRM-STRING is a string of resource
  944.      names and values, in the same format used in the `.Xresources'
  945.      file.  The values you specify override the resource values
  946.      recorded in the X server itself.  Here's an example of what this
  947.      string might look like:
  948.           "*BorderWidth: 3\n*InternalBorder: 2\n"
  949.    * A series of new functions give you information about the X server
  950.      and the screen you are using.
  951.     `x-display-screens'
  952.           The number of screens associated with the current display.
  953.     `x-server-version'
  954.           The version numbers of the X server in use.
  955.     `x-server-vendor'
  956.           The vendor supporting the X server in use.
  957.     `x-display-pixel-height'
  958.           The height of this X screen in pixels.
  959.     `x-display-mm-height'
  960.           The height of this X screen in millimeters.
  961.     `x-display-pixel-width'
  962.           The width of this X screen in pixels.
  963.     `x-display-mm-width'
  964.           The width of this X screen in millimeters.
  965.     `x-display-backing-store'
  966.           The backing store capability of this screen.  Values can be
  967.           the symbols `always', `when-mapped', or `not-useful'.
  968.     `x-display-save-under'
  969.           Non-`nil' if this X screen supports the SaveUnder feature.
  970.     `x-display-planes'
  971.           The number of planes this display supports.
  972.     `x-display-visual-class'
  973.           The visual class for this X screen.  The value is one of the
  974.           symbols `static-gray', `gray-scale', `static-color',
  975.           `pseudo-color', `true-color', and `direct-color'.
  976.     `x-display-color-p'
  977.           `t' if the X screen in use is a color screen.
  978.     `x-display-color-cells'
  979.           The number of color cells this X screen supports.
  980.      There is also a variable `x-no-window-manager', whose value is `t'
  981.      if no X window manager is in use.
  982.    * The function `x-synchronize' enables or disables an X Windows
  983.      debugging mode: synchronous communication.  It takes one argument,
  984.      non-`nil' to enable the mode and `nil' to disable.
  985.      In synchronous mode, Emacs waits for a response to each X protocol
  986.      command before doing anything else.  This means that errors are
  987.      reported right away, and you can directly find the erroneous
  988.      command.  Synchronous mode is not the default because it is much
  989.      slower.
  990.    * The function `x-get-resource' retrieves a resource value from the X
  991.      Windows defaults database.  Its three arguments are ATTRIBUTE,
  992.      NAME and CLASS.  It searches using a key of the form
  993.      `INSTANCE.ATTRIBUTE', with class `Emacs', where INSTANCE is the
  994.      name under which Emacs was invoked.
  995.      The optional arguments COMPONENT and SUBCLASS add to the key and
  996.      the class, respectively.  You must specify both of them or neither.
  997.      If you specify them, the key is `INSTANCE.COMPONENT.ATTRIBUTE',
  998.      and the class is `Emacs.SUBCLASS'.
  999.    * `x-display-color-p' returns `t' if you are using an X server with
  1000.      a color display, and `nil' otherwise.
  1001.      `x-color-defined-p' takes as argument a string describing a color;
  1002.      it returns `t' if the display supports that color.  (If the color
  1003.      is `"black"' or `"white"' then even black-and-white displays
  1004.      support it.)
  1005.    * `x-popup-menu' has been generalized.  It now accepts a keymap as
  1006.      the MENU argument.  Then the menu items are the prompt strings of
  1007.      individual key bindings, and the item values are the keys which
  1008.      have those bindings.
  1009.      You can also supply a list of keymaps as the first argument; then
  1010.      each keymap makes one menu pane (but keymaps that don't provide
  1011.      any menu items don't appear in the menu at all).
  1012.      `x-popup-menu' also accepts a mouse button event as the POSITION
  1013.      argument.  Then it displays the menu at the location at which the
  1014.      event took place.  This is convenient for mouse-invoked commands
  1015.      that pop up menus.
  1016.    * You can use the function `x-rebind-key' to change the sequence of
  1017.      characters generated by the X server for one of the keyboard keys.
  1018.      The first two arguments, KEYCODE and SHIFT-MASK, should be numbers
  1019.      representing the keyboard code and shift mask respectively.  They
  1020.      specify what key to change.
  1021.      The third argument, NEWSTRING, is the new definition of the key.
  1022.      It is a sequence of characters that the key should produce as
  1023.      input.
  1024.      The shift mask value is a combination of bits according to this
  1025.      table:
  1026.     8
  1027.           Control
  1028.     4
  1029.           Meta
  1030.     2
  1031.           Shift
  1032.     1
  1033.           Shift Lock
  1034.      If you specify `nil' for SHIFT-MASK, then the key specified by
  1035.      KEYCODE is redefined for all possible shift combinations.
  1036.      For the possible values of KEYCODE and their meanings, see the
  1037.      file `/usr/lib/Xkeymap.txt'.  Keep in mind that the codes in that
  1038.      file are in octal!
  1039.      The related function `x-rebind-keys' redefines a single keyboard
  1040.      key, specifying the behavior for each of the 16 shift masks
  1041.      independently.  The first argument is KEYCODE, as in
  1042.      `x-rebind-key'.  The second argument STRINGS is a list of 16
  1043.      elements, one for each possible shift mask value; each element
  1044.      says how to redefine the key KEYCODE with the corresponding shift
  1045.      mask value.  If an element is a string, it is the new definition.
  1046.      If an element is `nil', the definition does not change for that
  1047.      shift mask.
  1048.    * The function `x-parse-geometry' parses a string specifying window
  1049.      size and position in the usual X format.  It returns an alist
  1050.      describing which parameters were specified, and the values that
  1051.      were given for them.
  1052.      The elements of the alist look like `(PARAMETER .  VALUE)'.  The
  1053.      possible PARAMETER values are `left', `top', `width', and `height'.
  1054. New Window Features
  1055. ===================
  1056.    * The new function `window-at' tells you which window contains a
  1057.      given horizontal and vertical position on a specified frame.  Call
  1058.      it with three arguments, like this:
  1059.           (window-at X COLUMN FRAME)
  1060.      The function returns the window which contains that cursor
  1061.      position in the frame FRAME.  If you omit FRAME, the selected
  1062.      frame is used.
  1063.    * The function `coordinates-in-window-p' takes two arguments and
  1064.      checks whether a particular frame position falls within a
  1065.      particular window.
  1066.           (coordinates-in-window-p COORDINATES WINDOW)
  1067.      The argument COORDINATES is a cons cell of this form:
  1068.           (X . Y)
  1069.      The two coordinates are measured in characters, and count from the
  1070.      top left corner of the screen or frame.
  1071.      The value of the function tells you what part of the window the
  1072.      position is in.  The possible values are:
  1073.     `(RELX . RELY)'
  1074.           The coordinates are inside WINDOW.  The numbers RELX and RELY
  1075.           are equivalent window-relative coordinates, counting from 0
  1076.           at the top left corner of the window.
  1077.     `mode-line'
  1078.           The coordinates are in the mode line of WINDOW.
  1079.     `vertical-split'
  1080.           The coordinates are in the vertical line between WINDOW and
  1081.           its neighbor to the right.
  1082.     `nil'
  1083.           The coordinates are not in any sense within WINDOW.
  1084.      You need not specify a frame when you call
  1085.      `coordinates-in-window-p', because it assumes you mean the frame
  1086.      which window WINDOW is on.
  1087.    * The function `minibuffer-window' now accepts a frame as argument
  1088.      and returns the minibuffer window used for that frame.  If you
  1089.      don't specify a frame, the currently selected frame is used.  The
  1090.      minibuffer window may be on the frame in question, but if that
  1091.      frame has no minibuffer of its own, it uses the minibuffer window
  1092.      of some other frame, and `minibuffer-window' returns that window.
  1093.    * Use `window-live-p' to test whether a window is still alive (that
  1094.      is, not deleted).
  1095.    * Use `window-minibuffer-p' to determine whether a given window is a
  1096.      minibuffer or not.  It no longer works to do this by comparing the
  1097.      window with the result of `(minibuffer-window)', because there can
  1098.      be more than one minibuffer window at a time (if you have multiple
  1099.      frames).
  1100.    * If you set the variable `pop-up-frames' non-`nil', then the
  1101.      functions to show something "in another window" actually create a
  1102.      new frame for the new window.  Thus, you will tend to have a frame
  1103.      for each window, and you can easily have a frame for each buffer.
  1104.      The value of the variable `pop-up-frame-function' controls how new
  1105.      frames are made.  The value should be a function which takes no
  1106.      arguments and returns a frame.  The default value is a function
  1107.      which creates a frame using parameters from `pop-up-frame-alist'.
  1108.    * `display-buffer' is the basic primitive for finding a way to show a
  1109.      buffer on the screen.  You can customize its behavior by storing a
  1110.      function in the variable `display-buffer-function'.  If this
  1111.      variable is non-`nil', then `display-buffer' calls it to do the
  1112.      work.  Your function should accept two arguments, as follows:
  1113.     BUFFER
  1114.           The buffer to be displayed.
  1115.     FLAG
  1116.           A flag which, if non-`nil', means you should find another
  1117.           window to display BUFFER in, even if it is already visible in
  1118.           the selected window.
  1119.      The function you supply will be used by commands such as
  1120.      `switch-to-buffer-other-window' and `find-file-other-window' as
  1121.      well as for your own calls to `display-buffer'.
  1122.    * `delete-window' now gives all of the deleted window's screen space
  1123.      to a single neighboring window.  Likewise, `enlarge-window' takes
  1124.      space from only one neighboring window until that window
  1125.      disappears; only then does it take from another window.
  1126.    * `next-window' and `previous-window' accept another argument,
  1127.      ALL-FRAMES.
  1128.      These functions now take three optional arguments: WINDOW, MINIBUF
  1129.      and ALL-FRAMES.  WINDOW is the window to start from (`nil' means
  1130.      use the selected window).  MINIBUF says whether to include the
  1131.      minibuffer in the windows to cycle through: `t' means yes, `nil'
  1132.      means yes if it is active, and anything else means no.
  1133.      Normally, these functions cycle through all the windows in the
  1134.      selected frame, plus the minibuffer used by the selected frame
  1135.      even if it lies in some other frame.
  1136.      If ALL-FRAMES is `t', then these functions cycle through all the
  1137.      windows in all the frames that currently exist.  If ALL-FRAMES is
  1138.      neither `t' nor `nil', then they limit themselves strictly to the
  1139.      windows in the selected frame, excluding the minibuffer in use if
  1140.      it lies in some other frame.
  1141.    * The functions `get-lru-window' and `get-largest-window' now take
  1142.      an optional argument ALL-FRAMES.  If it is non-`nil', the
  1143.      functions consider all windows on all frames.  Otherwise, they
  1144.      consider just the windows on the selected frame.
  1145.      Likewise, `get-buffer-window' takes an optional second argument
  1146.      ALL-FRAMES.
  1147.    * The variable `other-window-scroll-buffer' specifies which buffer
  1148.      `scroll-other-window' should scroll.
  1149.    * You can now mark a window as "dedicated" to its buffer.  Then
  1150.      Emacs will not try to use that window for any other buffer unless
  1151.      you explicitly request it.
  1152.      Use the new function `set-window-dedicated-p' to set the dedication
  1153.      flag of a window WINDOW to the value FLAG.  If FLAG is `t', this
  1154.      makes the window dedicated.  If FLAG is `nil', this makes the
  1155.      window non-dedicated.
  1156.      Use `window-dedicated-p' to examine the dedication flag of a
  1157.      specified window.
  1158.    * The new function `walk-windows' cycles through all visible
  1159.      windows, calling `proc' once for each window with the window as
  1160.      its sole argument.
  1161.      The optional second argument MINIBUF says whether to include
  1162.      minibuffer windows.  A value of `t' means count the minibuffer
  1163.      window even if not active.  A value of `nil' means count it only
  1164.      if active.  Any other value means not to count the minibuffer even
  1165.      if it is active.
  1166.      If the optional third argument ALL-FRAMES is `t', that means
  1167.      include all windows in all frames.  If ALL-FRAMES is `nil', it
  1168.      means to cycle within the selected frame, but include the
  1169.      minibuffer window (if MINIBUF says so) that that frame uses, even
  1170.      if it is on another frame.  If ALL-FRAMES is neither `nil' nor `t',
  1171.      `walk-windows' sticks strictly to the selected frame.
  1172.    * The function `window-end' is a counterpart to `window-start': it
  1173.      returns the buffer position of the end of the display in a given
  1174.      window (or the selected window).
  1175.    * The function `window-configuration-p' returns non-`nil' when given
  1176.      an object that is a window configuration (such as is returned by
  1177.      `current-window-configuration').
  1178. Display Features
  1179. ================
  1180.    * `baud-rate' is now a variable rather than a function.  This is so
  1181.      you can set it to reflect the effective speed of your terminal,
  1182.      when the system doesn't accurately know the speed.
  1183.    * You can now remove any echo area message and make the minibuffer
  1184.      visible.  To do this, call `message' with `nil' as the only
  1185.      argument.  This clears any existing message, and lets the current
  1186.      minibuffer contents show through.  Previously, there was no
  1187.      reliable way to make sure that the minibuffer contents were
  1188.      visible.
  1189.    * The variable `temp-buffer-show-hook' has been renamed
  1190.      `temp-buffer-show-function', because its value is a single function
  1191.      (of one argument), not a normal hook.
  1192.    * The new function `force-mode-line-update' causes redisplay of the
  1193.      current buffer's mode line.
  1194. Display Tables
  1195. ==============
  1196.    You can use the "display table" feature to control how all 256
  1197. possible character codes display on the screen.  This is useful for
  1198. displaying European languages that have letters not in the ASCII
  1199. character set.
  1200.    The display table maps each character code into a sequence of
  1201. "glyphs", each glyph being an image that takes up one character
  1202. position on the screen.  You can also define how to display each glyph
  1203. on your terminal, using the "glyph table".
  1204. Display Tables Proper
  1205. ---------------------
  1206.    Use `make-display-table' to create a display table.  The table
  1207. initially has `nil' in all elements.
  1208.    A display table is actually an array of 261 elements.  The first 256
  1209. elements of a display table control how to display each possible text
  1210. character.  The value should be `nil' or a vector (which is a sequence
  1211. of glyphs; see below).  `nil' as an element means to display that
  1212. character following the usual display conventions.
  1213.    The remaining five elements of a display table serve special purposes
  1214. (`nil' means use the default stated below):
  1215.      The glyph for the end of a truncated screen line (the default for
  1216.      this is `\').
  1217.      The glyph for the end of a continued line (the default is `$').
  1218.      The glyph for the indicating an octal character code (the default
  1219.      is `\').
  1220.      The glyph for indicating a control characters (the default is `^').
  1221.      The vector of glyphs for indicating the presence of invisible
  1222.      lines (the default is `...').
  1223.    Each buffer typically has its own display table.  The display table
  1224. for the current buffer is stored in `buffer-display-table'.  (This
  1225. variable automatically becomes local if you set it.)  If this variable
  1226. is `nil', the value of `standard-display-table' is used in that buffer.
  1227.    Each window can have its own display table, which overrides the
  1228. display table of the buffer it is showing.
  1229.    If neither the selected window nor the current buffer has a display
  1230. table, and if `standard-display-table' is `nil', then Emacs uses the
  1231. usual display conventions:
  1232.    * Character codes 32 through 127 map to glyph codes 32 through 127.
  1233.    * Codes 0 through 31 map to sequences of two glyphs, where the first
  1234.      glyph is the ASCII code for `^'.
  1235.    * Character codes 128 through 255 map to sequences of four glyphs,
  1236.      where the first glyph is the ASCII code for `\', and the others
  1237.      represent digits.
  1238.    The usual display conventions are also used for any character whose
  1239. entry in the active display table is `nil'.  This means that when you
  1240. set up a display table, you need not specify explicitly what to do with
  1241. each character, only the characters for which you want unusual behavior.
  1242. Glyphs
  1243. ------
  1244.    A glyph stands for an image that takes up a single character
  1245. position on the screen.  A glyph is represented in Lisp as an integer.
  1246.    The meaning of each integer, as a glyph, is defined by the glyph
  1247. table, which is the value of the variable `glyph-table'.  It should be a
  1248. vector; the Gth element defines glyph code G.  The possible definitions
  1249. of a glyph code are:
  1250. INTEGER
  1251.      Define this glyph code as an alias for code INTEGER.  This is used
  1252.      with X Windows to specify a face code.
  1253. STRING
  1254.      Send the characters in STRING to the terminal to output this
  1255.      glyph.  This alternative is available only for character
  1256.      terminals, not with X.
  1257. `NIL'
  1258.      This glyph is simple.  On an ordinary terminal, the glyph code mod
  1259.      256 is the character to output.  With X, the glyph code mod 256 is
  1260.      character to output, and the glyph code divided by 256 specifies
  1261.      the "face code" to use while outputting it.
  1262.    Any glyph code beyond the length of the glyph table is automatically
  1263. simple.
  1264.    If `glyph-table' is `nil', then all possible glyph codes are simple.
  1265.    A "face" is a named combination of a font and a pair of colors
  1266. (foreground and background).  A glyph code can specify a face id number
  1267. to use for displaying that glyph.
  1268. ISO Latin 1
  1269. -----------
  1270.    If you have a terminal that can handle the entire ISO Latin 1
  1271. character set, you can arrange to use that character set as follows:
  1272.      (require 'disp-table)
  1273.      (standard-display-8bit 0 255)
  1274.    If you are editing buffers written in the ISO Latin 1 character set
  1275. and your terminal doesn't handle anything but ASCII, you can load the
  1276. file `iso-ascii' to set up a display table which makes the other ISO
  1277. characters display as sequences of ASCII characters.  For example, the
  1278. character "o with umlaut" displays as `{"o}'.
  1279.    Some European countries have terminals that don't support ISO Latin 1
  1280. but do support the special characters for that country's language.  You
  1281. can define a display table to work one language using such terminals.
  1282. For an example, see `lisp/iso-swed.el', which handles certain Swedish
  1283. terminals.
  1284.    You can load the appropriate display table for your terminal
  1285. automatically by writing a terminal-specific Lisp file for the terminal
  1286. type.
  1287. Overlays
  1288. ========
  1289.    You can use "overlays" to alter the appearance of a buffer's text on
  1290. the screen.  An overlay is an object which belongs to a particular
  1291. buffer, and has a specified beginning and end.  It also has properties
  1292. which you can examine and set; these affect the display of the text
  1293. within the overlay.
  1294. Overlay Properties
  1295. ------------------
  1296.    Overlay properties are like text properties in some respects, but the
  1297. differences are more important than the similarities.  Text properties
  1298. are considered a part of the text; overlays are specifically considered
  1299. not to be part of the text.  Thus, copying text between various buffers
  1300. and strings preserves text properties, but does not try to preserve
  1301. overlays.  Changing a buffer's text properties marks the buffer as
  1302. modified, while moving an overlay or changing its properties does not.
  1303. `face'
  1304.      This property specifies a face for displaying the text within the
  1305.      overlay.
  1306. `priority'
  1307.      This property's value (which should be a nonnegative number)
  1308.      determines the priority of the overlay.  The priority matters when
  1309.      two or more overlays cover the same character and both specify a
  1310.      face for display; the one whose `priority' value is larger takes
  1311.      priority over the other, and its face attributes override the face
  1312.      attributes of the lower priority overlay.
  1313.      Currently, all overlays take priority over text properties.  Please
  1314.      avoid using negative priority values, as we have not yet decided
  1315.      just what they should mean.
  1316. `window'
  1317.      If the `window' property is non-`nil', then the overlay applies
  1318.      only on that window.
  1319. Overlay Functions
  1320. -----------------
  1321.    Use the functions `overlay-get' and `overlay-put' to access and set
  1322. the properties of an overlay.  They take arguments like `get' and
  1323. `put', except that the first argument is an overlay rather than a
  1324. symbol.
  1325.    To create an overlay, call `(make-overlay START END)'.  You can
  1326. specify the buffer as the third argument if you wish.  To delete one,
  1327. use `delete-overlay'.
  1328.    Use `overlay-start', `overlay-end' and `overlay-buffer' to examine
  1329. the location and range of an overlay.  Use `move-overlay' to change
  1330. them; its arguments are OVERLAY, START, END and (optionally) the buffer.
  1331.    There are two functions to search for overlays: `overlays-at' and
  1332. `next-overlay-change'.  `overlays-at' returns a list of all the
  1333. overlays containing a particular position.  `(next-overlay-change POS)'
  1334. returns the position of the next overlay beginning or end following POS.
  1335. Faces
  1336. =====
  1337.    A "face" is a named collection of graphical attributes: font,
  1338. foreground color, background color and optional underlining.  Faces
  1339. control the display of text on the screen.
  1340.    Each face has its own "face id number" which distinguishes faces at
  1341. low levels within Emacs.  However, for most purposes, you can refer to
  1342. faces in Lisp programs by their names.
  1343.    Each face name is meaningful for all frames, and by default it has
  1344. the same meaning in all frames.  But you can arrange to give a
  1345. particular face name a special meaning in one frame if you wish.
  1346. Choosing a Face for Display
  1347. ---------------------------
  1348.    Here are all the ways to specify which face to use for display of
  1349. text:
  1350.    * With defaults.  Each frame has a "default face", whose id number is
  1351.      zero, which is used for all text that doesn't somehow specify
  1352.      another face.
  1353.    * With text properties.  A character may have a `face' property; if
  1354.      so, it's displayed with that face.  If the character has a
  1355.      `mouse-face' property, that is used instead of the `face' property
  1356.      when the mouse is "near enough" to the character.
  1357.    * With overlays.  An overlay may have `face' and `mouse-face'
  1358.      properties too; they apply to all the text covered by the overlay.
  1359.    * With special glyphs.  Each glyph can specify a particular face id
  1360.      number.
  1361.    If these various sources together specify more than one face for a
  1362. particular character, Emacs merges the attributes of the various faces
  1363. specified.  The attributes of the faces of special glyphs come first;
  1364. then come attributes of faces from overlays, followed by those from text
  1365. properties, and last the default face.
  1366.    When multiple overlays cover one character, an overlay with higher
  1367. priority overrides those with lower priority.
  1368.    If an attribute such as the font or a color is not specified in any
  1369. of the above ways, the frame's own font or color is used.
  1370.    *Note Face Functions: (elisp)Face Functions, for functions to create
  1371. and change faces.
  1372. New Input Event Formats
  1373. =======================
  1374.    Mouse clicks, mouse movements and function keys no longer appear in
  1375. the input stream as characters; instead, other kinds of Lisp objects
  1376. represent them as input.
  1377.    * An ordinary input character event consists of a "basic code"
  1378.      between 0 and 255, plus any or all of these "modifier bits":
  1379.     meta
  1380.           The 2**23 bit in the character code indicates a character
  1381.           typed with the meta key held down.
  1382.     control
  1383.           The 2**22 bit in the character code indicates a non-ASCII
  1384.           control character.
  1385.           ASCII control characters such as `C-a' have special basic
  1386.           codes of their own, so Emacs needs no special bit to indicate
  1387.           them.  Thus, the code for `C-a' is just 1.
  1388.           But if you type a control combination not in ASCII, such as
  1389.           `%' with the control key, the numeric value you get is the
  1390.           code for `%' plus 2**22 (assuming the terminal supports
  1391.           non-ASCII control characters).
  1392.     shift
  1393.           The 2**21 bit in the character code indicates an ASCII control
  1394.           character typed with the shift key held down.
  1395.           For letters, the basic code indicates upper versus lower
  1396.           case; for digits and punctuation, the shift key selects an
  1397.           entirely different character with a different basic code.  In
  1398.           order to keep within the ASCII character set whenever
  1399.           possible, Emacs avoids using the 2**21 bit for those
  1400.           characters.
  1401.           However, ASCII provides no way to distinguish `C-A' from
  1402.           `C-a', so Emacs uses the 2**21 bit in `C-A' and not in `C-a'.
  1403.     hyper
  1404.           The 2**20 bit in the character code indicates a character
  1405.           typed with the hyper key held down.
  1406.     super
  1407.           The 2**19 bit in the character code indicates a character
  1408.           typed with the super key held down.
  1409.     alt
  1410.           The 2**18 bit in the character code indicates a character
  1411.           typed with the alt key held down.  (On some terminals, the
  1412.           key labeled ALT is actually the meta key.)
  1413.      In the future, Emacs may support a larger range of basic codes.
  1414.      We may also move the modifier bits to larger bit numbers.
  1415.      Therefore, you should avoid mentioning specific bit numbers in
  1416.      your program.  Instead, the way to test the modifier bits of a
  1417.      character is with the function `event-modifiers' (see below).
  1418.    * Function keys are represented as symbols.  The symbol's name is
  1419.      the function key's label.  For example, pressing a key labeled F1
  1420.      places the symbol `f1' in the input stream.
  1421.      There are a few exceptions to the symbol naming convention:
  1422.     `kp-add', `kp-decimal', `kp-divide', ...
  1423.           Keypad keys (to the right of the regular keyboard).
  1424.     `kp-0', `kp-1', ...
  1425.           Keypad keys with digits.
  1426.     `kp-f1', `kp-f2', `kp-f3', `kp-f4'
  1427.           Keypad PF keys.
  1428.     `left', `up', `right', `down'
  1429.           Cursor arrow keys
  1430.      You can use the modifier keys CTRL, META, HYPER, SUPER, ALT and
  1431.      SHIFT with function keys.  The way to represent them is with
  1432.      prefixes in the symbol name:
  1433.     `A-'
  1434.           The alt modifier.
  1435.     `C-'
  1436.           The control modifier.
  1437.     `H-'
  1438.           The hyper modifier.
  1439.     `M-'
  1440.           The meta modifier.
  1441.     `s-'
  1442.           The super modifier.
  1443.     `S-'
  1444.           The shift modifier.
  1445.      Thus, the symbol for the key F3 with META held down is `M-F3'.
  1446.      When you use more than one prefix, we recommend you write them in
  1447.      alphabetical order (though the order does not matter in arguments
  1448.      to the key-binding lookup and modification functions).
  1449.    * Mouse events are represented as lists.
  1450.      If you press a mouse button and release it at the same location,
  1451.      this generates a "click" event.  Mouse click events have this form:
  1452.           (BUTTON-SYMBOL
  1453.            (WINDOW (COLUMN . ROW)
  1454.             BUFFER-POS TIMESTAMP))
  1455.      Here is what the elements normally mean:
  1456.     BUTTON-SYMBOL
  1457.           indicates which mouse button was used.  It is one of the
  1458.           symbols `mouse-1', `mouse-2', ..., where the buttons are
  1459.           normally numbered left to right.
  1460.           You can also use prefixes `A-', `C-', `H-', `M-', `S-' and
  1461.           `s-' for modifiers alt, control, hyper, meta, shift and
  1462.           super, just as you would with function keys.
  1463.     WINDOW
  1464.           is the window in which the click occurred.
  1465.     COLUMN
  1466.     ROW
  1467.           are the column and row of the click, relative to the top left
  1468.           corner of WINDOW, which is `(0 . 0)'.
  1469.     BUFFER-POS
  1470.           is the buffer position of the character clicked on.
  1471.     TIMESTAMP
  1472.           is the time at which the event occurred, in milliseconds.
  1473.           (Since this value wraps around the entire range of Emacs Lisp
  1474.           integers in about five hours, it is useful only for relating
  1475.           the times of nearby events.)
  1476.      The meanings of BUFFER-POS, ROW and COLUMN are somewhat different
  1477.      when the event location is in a special part of the screen, such
  1478.      as the mode line or a scroll bar.
  1479.      If the position is in the window's scroll bar, then BUFFER-POS is
  1480.      the symbol `vertical-scroll-bar', and the pair `(COLUMN . ROW)' is
  1481.      replaced with a pair `(PORTION . WHOLE)', where PORTION is the
  1482.      distance of the click from the top or left end of the scroll bar,
  1483.      and WHOLE is the length of the entire scroll bar.
  1484.      If the position is on a mode line or the vertical line separating
  1485.      WINDOW from its neighbor to the right, then BUFFER-POS is the
  1486.      symbol `mode-line' or `vertical-line'.  In this case ROW and
  1487.      COLUMN do not have meaningful data.
  1488.    * Releasing a mouse button above a different character position
  1489.      generates a "drag" event, which looks like this:
  1490.           (BUTTON-SYMBOL
  1491.            (WINDOW1 (COLUMN1 . ROW1)
  1492.             BUFFER-POS1 TIMESTAMP1)
  1493.            (WINDOW2 (COLUMN2 . ROW2)
  1494.             BUFFER-POS2 TIMESTAMP2))
  1495.      The name of BUTTON-SYMBOL contains the prefix `drag-'.  The second
  1496.      and third elements of the event give the starting and ending
  1497.      position of the drag.
  1498.      The `drag-' prefix follows the modifier key prefixes such as `C-'
  1499.      and `M-'.
  1500.      If `read-key-sequence' receives a drag event which has no key
  1501.      binding, and the corresponding click event does have a binding, it
  1502.      changes the drag event into a click event at the drag's starting
  1503.      position.  This means that you don't have to distinguish between
  1504.      click and drag events unless you want to.
  1505.    * Click and drag events happen when you release a mouse button.
  1506.      Another kind of event happens when you press a button.  It looks
  1507.      just like a click event, except that the name of BUTTON-SYMBOL
  1508.      contains the prefix `down-'.  The `down-' prefix follows the
  1509.      modifier key prefixes such as `C-' and `M-'.
  1510.      The function `read-key-sequence', and the Emacs command loop,
  1511.      ignore any down events that don't have command bindings.  This
  1512.      means that you need not worry about defining down events unless
  1513.      you want them to do something.  The usual reason to define a down
  1514.      event is so that you can track mouse motion until the button is
  1515.      released.
  1516.    * For example, if the user presses and releases the left mouse
  1517.      button over the same location, Emacs generates a sequence of
  1518.      events like this:
  1519.           (down-mouse-1 (#<window 18 on NEWS> 2613 (0 . 38) -864320))
  1520.           (mouse-1      (#<window 18 on NEWS> 2613 (0 . 38) -864180))
  1521.      Or, while holding the control key down, the user might hold down
  1522.      the second mouse button, and drag the mouse from one line to the
  1523.      next.  That produces two events, as shown here:
  1524.           (C-down-mouse-2 (#<window 18 on NEWS> 3440 (0 . 27) -731219))
  1525.           (C-drag-mouse-2 (#<window 18 on NEWS> 3440 (0 . 27) -731219)
  1526.                           (#<window 18 on NEWS> 3510 (0 . 28) -729648))
  1527.      Or, while holding down the meta and shift keys, the user might
  1528.      press the second mouse button on the window's mode line, and then
  1529.      drag the mouse into another window.  That produces an event like
  1530.      this:
  1531.           (M-S-down-mouse-2 (#<window 18 on NEWS> mode-line (33 . 31) -457844))
  1532.           (M-S-drag-mouse-2 (#<window 18 on NEWS> mode-line (33 . 31) -457844)
  1533.                             (#<window 20 on carlton-sanskrit.tex> 161 (33 . 3)
  1534.                              -453816))
  1535.    * A key sequence that starts with a mouse click is read using the
  1536.      keymaps of the buffer in the window clicked on, not the current
  1537.      buffer.
  1538.      This does not imply that clicking in a window selects that window
  1539.      or its buffer.  The execution of the command begins with no change
  1540.      in the selected window or current buffer.  However, the command
  1541.      can switch windows or buffers if programmed to do so.
  1542.    * Mouse motion events are represented by lists.  During the
  1543.      execution of the body of a `track-mouse' form, moving the mouse
  1544.      generates events that look like this:
  1545.           (mouse-movement (WINDOW (COLUMN . ROW)
  1546.                            BUFFER-POS TIMESTAMP))
  1547.      The second element of the list describes the current position of
  1548.      the mouse, just as in a mouse click event.
  1549.      Outside of `track-mouse' forms, Emacs does not generate events for
  1550.      mere motion of the mouse, and these events do not appear.
  1551.    * Focus shifts between frames are represented by lists.
  1552.      When the mouse shifts temporary input focus from one frame to
  1553.      another, Emacs generates an event like this:
  1554.           (switch-frame NEW-FRAME)
  1555.      where NEW-FRAME is the frame switched to.
  1556.      In X windows, most window managers are set up so that just moving
  1557.      the mouse into a window is enough to set the focus there.  As far
  1558.      as the user is concerned, Emacs behaves consistently with this.
  1559.      However, there is no need for the Lisp program to know about the
  1560.      focus change until some other kind of input arrives.  So Emacs
  1561.      generates the focus event only when the user actually types a
  1562.      keyboard key or presses a mouse button in the new frame; just
  1563.      moving the mouse between frames does not generate a focus event.
  1564.      The global key map usually binds this event to the
  1565.      `internal-select-frame' function, so that characters typed at a
  1566.      frame apply to that frame's selected window.
  1567.      If the user switches frames in the middle of a key sequence, then
  1568.      Emacs delays the `switch-frame' event until the key sequence is
  1569.      over.  For example, suppose `C-c C-a' is a key sequence in the
  1570.      current buffer's keymaps.  If the user types `C-c', moves the
  1571.      mouse to another frame, and then types `C-a', `read-key-sequence'
  1572.      returns the sequence `"\C-c\C-a"', and the next call to
  1573.      `read-event' or `read-key-sequence' will return the `switch-frame'
  1574.      event.
  1575. Working with Input Events
  1576. =========================
  1577.    * Functions which work with key sequences now handle non-character
  1578.      events.  Functions like `define-key', `global-set-key', and
  1579.      `local-set-key' used to accept strings representing key sequences;
  1580.      now, since events may be arbitrary lisp objects, they also accept
  1581.      vectors.  The function `read-key-sequence' may return a string or a
  1582.      vector, depending on whether or not the sequence read contains only
  1583.      characters.
  1584.      List events may be represented by the symbols at their head; to
  1585.      bind clicks of the left mouse button, you need only present the
  1586.      symbol `mouse-1', not an entire mouse click event.  If you do put
  1587.      an event which is a list in a key sequence, only the event's head
  1588.      symbol is used in key lookups.
  1589.      For example, to globally bind the left mouse button to the function
  1590.      `mouse-set-point', you could evaluate this:
  1591.           (global-set-key [mouse-1] 'mouse-set-point)
  1592.      To bind the sequence `C-c F1' to the command `tex-view' in
  1593.      `tex-mode-map', you could evaluate this:
  1594.           (define-key tex-mode-map [?\C-c f1] 'tex-view)
  1595.      To find the binding for the function key labeled NEXT in
  1596.      `minibuffer-local-map', you could evaluate this:
  1597.           (lookup-key minibuffer-local-map [next])
  1598.                => next-history-element
  1599.      If you call the function `read-key-sequence' and then press `C-x
  1600.      C-F5', here is how it behaves:
  1601.           (read-key-sequence "Press `C-x C-F5': ")
  1602.                => [24 C-f5]
  1603.      Note that `24' is the character `C-x'.
  1604.    * The documentation functions (`single-key-description',
  1605.      `key-description', etc.) now handle the new event types.  Wherever
  1606.      a string of keyboard input characters was acceptable in previous
  1607.      versions of Emacs, a vector of events should now work.
  1608.    * Special parts of a window can have their own bindings for mouse
  1609.      events.
  1610.      When mouse events occur in special parts of a window, such as a
  1611.      mode line or a scroll bar, the event itself shows nothing
  1612.      special--only the symbol that would normally represent that mouse
  1613.      button and modifier keys.  The information about the screen region
  1614.      is kept in other parts of the event list.  But `read-key-sequence'
  1615.      translates this information into imaginary prefix keys, all of
  1616.      which are symbols: `mode-line', `vertical-line', and
  1617.      `vertical-scroll-bar'.
  1618.      For example, if you call `read-key-sequence' and then click the
  1619.      mouse on the window's mode line, this is what happens:
  1620.           (read-key-sequence "Click on the mode line: ")
  1621.                => [mode-line (mouse-1 (#<window 6 on NEWS> mode-line
  1622.                                         (40 . 63) 5959987))]
  1623.      You can define meanings for mouse clicks in special window regions
  1624.      by defining key sequences using these imaginary prefix keys.  For
  1625.      example, here is how to bind the third mouse button on a window's
  1626.      mode line delete the window:
  1627.           (global-set-key [mode-line mouse-3] 'mouse-delete-window)
  1628.      Here's how to bind the middle button (modified by META) on the
  1629.      vertical line at the right of a window to scroll the window to the
  1630.      left.
  1631.           (global-set-key [vertical-line M-mouse-2] 'scroll-left)
  1632.    * Decomposing an event symbol.
  1633.      Each symbol used to identify a function key or mouse button has a
  1634.      property named `event-symbol-elements', which is a list containing
  1635.      an unmodified version of the symbol, followed by modifiers the
  1636.      symbol name contains.  The modifiers are symbols; they include
  1637.      `shift', `control', and `meta'.  In addition, a mouse event symbol
  1638.      has one of `click', `drag', and `down'.  For example:
  1639.           (get 'f5 'event-symbol-elements)
  1640.                => (f5)
  1641.           (get 'C-f5 'event-symbol-elements)
  1642.                => (f5 control)
  1643.           (get 'M-S-f5 'event-symbol-elements)
  1644.                => (f5 meta shift)
  1645.           (get 'mouse-1 'event-symbol-elements)
  1646.                => (mouse-1 click)
  1647.           (get 'down-mouse-1 'event-symbol-elements)
  1648.                => (mouse-1 down)
  1649.      Note that the `event-symbol-elements' property for a mouse click
  1650.      explicitly contains `click', but the event symbol name itself does
  1651.      not contain `click'.
  1652.    * Use `read-event' to read input if you want to accept any kind of
  1653.      event.  The old function `read-char' now discards events other than
  1654.      keyboard characters.
  1655.    * `last-command-char' and `last-input-char' can now hold any kind of
  1656.      event.
  1657.    * The new variable `unread-command-events' is much like
  1658.      `unread-command-char'.  Its value is a list of events of any type,
  1659.      to be processed as command input in order of appearance in the
  1660.      list.
  1661.    * The function `this-command-keys' may return a string or a vector,
  1662.      depending on whether or not the sequence read contains only
  1663.      characters.  You may need to upgrade code which uses this function.
  1664.      The function `recent-keys' now returns a vector of events.  You
  1665.      may need to upgrade code which uses this function.
  1666.    * A keyboard macro's definition can now be either a string or a
  1667.      vector.  All that really matters is what elements it has.  If the
  1668.      elements are all characters, then the macro can be a string;
  1669.      otherwise, it has to be a vector.
  1670.    * The variable `last-event-frame' records which frame the last input
  1671.      event was directed to.  Usually this is the frame that was
  1672.      selected when the event was generated, but if that frame has
  1673.      redirected input focus to another frame, `last-event-frame' is the
  1674.      frame to which the event was redirected.
  1675.    * The interactive specification now allows a new code letter `e' to
  1676.      simplify commands bound to events which are lists.  This code
  1677.      supplies as an argument the complete event object.
  1678.      You can use `e' more than once in a single command's interactive
  1679.      specification.  If the key sequence which invoked the command has
  1680.      N events with parameters, the Nth `e' provides the Nth
  1681.      parameterized event.  Events which are not lists, such as function
  1682.      keys and ASCII keystrokes, do not count where `e' is concerned.
  1683.    * You can extract the starting and ending position values from a
  1684.      mouse button or motion event using the two functions `event-start'
  1685.      and `event-end'.  These two functions return different values for
  1686.      drag and motion events; for click and button-down events, they
  1687.      both return the position of the event.
  1688.    * The position, a returned by `event-start' and `event-end', is a
  1689.      list of this form:
  1690.           (WINDOW BUFFER-POSITION (COL . ROW) TIMESTAMP)
  1691.      You can extract parts of this list with the functions
  1692.      `posn-window', `posn-point', `posn-col-row', and `posn-timestamp'.
  1693.    * The function `scroll-bar-scale' is useful for computing where to
  1694.      scroll to in response to a mouse button event from a scroll bar.
  1695.      It takes two arguments, RATIO and TOTAL, and in effect multiplies
  1696.      them.  We say "in effect" because RATIO is not a number; rather a
  1697.      pair `(NUM . DENOM)'.
  1698.      Here's the usual way to use `scroll-bar-scale':
  1699.           (scroll-bar-scale (posn-col-row (event-start event))
  1700.                             (buffer-size))
  1701. Putting Keyboard Events in Strings
  1702. ==================================
  1703.    In most of the places where strings are used, we conceptualize the
  1704. string as containing text characters--the same kind of characters found
  1705. in buffers or files.  Occasionally Lisp programs use strings which
  1706. conceptually contain keyboard characters; for example, they may be key
  1707. sequences or keyboard macro definitions.  There are special rules for
  1708. how to put keyboard characters into a string, because they are not
  1709. limited to the range of 0 to 255 as text characters are.
  1710.    A keyboard character typed using the META key is called a "meta
  1711. character".  The numeric code for such an event includes the 2**23 bit;
  1712. it does not even come close to fitting in a string.  However, earlier
  1713. Emacs versions used a different representation for these characters,
  1714. which gave them codes in the range of 128 to 255.  That did fit in a
  1715. string, and many Lisp programs contain string constants that use `\M-'
  1716. to express meta characters, especially as the argument to `define-key'
  1717. and similar functions.
  1718.    We provide backward compatibility to run those programs with special
  1719. rules for how to put a keyboard character event in a string.  Here are
  1720. the rules:
  1721.    * If the keyboard event value is in the range of 0 to 127, it can go
  1722.      in the string unchanged.
  1723.    * The meta variants of those events, with codes in the range of
  1724.      2**23 to 2**23+127, can also go in the string, but you must change
  1725.      their numeric values.  You must set the 2**7 bit instead of the
  1726.      2**23 bit, resulting in a value between 128 and 255.
  1727.    * Other keyboard character events cannot fit in a string.  This
  1728.      includes keyboard events in the range of 128 to 255.
  1729.    Functions such as `read-key-sequence' that can construct strings
  1730. containing events follow these rules.
  1731.    When you use the read syntax `\M-' in a string, it produces a code
  1732. in the range of 128 to 255--the same code that you get if you modify
  1733. the corresponding keyboard event to put it in the string.  Thus, meta
  1734. events in strings work consistently regardless of how they get into the
  1735. strings.
  1736.    New programs can avoid dealing with these rules by using vectors
  1737. instead of strings for key sequences when there is any possibility that
  1738. these issues might arise.
  1739.    The reason we changed the representation of meta characters as
  1740. keyboard events is to make room for basic character codes beyond 127,
  1741. and support meta variants of such larger character codes.
  1742. Menus
  1743. =====
  1744.    You can now define menus conveniently as keymaps.  Menus are normally
  1745. used with the mouse, but they can work with the keyboard also.
  1746. Defining Menus
  1747. --------------
  1748.    A keymap is suitable for menu use if it has an "overall prompt
  1749. string", which is a string that appears as an element of the keymap.  It
  1750. should describes the purpose of the menu.  The easiest way to construct
  1751. a keymap with a prompt string is to specify the string as an argument
  1752. when you run `make-keymap' or `make-sparse-keymap'.
  1753.    The individual bindings in the menu keymap should also have prompt
  1754. strings; these strings are the items in the menu.  A binding with a
  1755. prompt string looks like this:
  1756.      (CHAR STRING . REAL-BINDING)
  1757.    As far as `define-key' is concerned, the string is part of the
  1758. character's binding--the binding looks like this:
  1759.      (STRING . REAL-BINDING).
  1760.    However, only REAL-BINDING is used for executing the key.
  1761.    You can also supply a second string, called the help string, as
  1762. follows:
  1763.      (CHAR STRING HELP-STRING . REAL-BINDING)
  1764.    Currently Emacs does not actually use HELP-STRING; it knows only how
  1765. to ignore HELP-STRING in order to extract REAL-BINDING.  In the future
  1766. we hope to make HELP-STRING serve as longer documentation for the menu
  1767. item, available on request.
  1768.    The prompt string for a binding should be short--one or two words.
  1769. Its meaning should describe the command it corresponds to.
  1770.    If REAL-BINDING is `nil', then STRING appears in the menu but cannot
  1771. be selected.
  1772.    If REAL-BINDING is a symbol, and has a non-`nil' `menu-enable'
  1773. property, that property is an expression which controls whether the
  1774. menu item is enabled.  Every time the keymap is used to display a menu,
  1775. Emacs evaluates the expression, and it enables the menu item only if
  1776. the expression's value is non-`nil'.  When a menu item is disabled, it
  1777. is displayed in a "fuzzy" fashion, and cannot be selected with the
  1778. mouse.
  1779. Menus and the Mouse
  1780. -------------------
  1781.    The way to make a menu keymap produce a menu is to make it the
  1782. definition of a prefix key.
  1783.    When the prefix key ends with a mouse event, Emacs handles the menu
  1784. keymap by popping up a visible menu that you can select from with the
  1785. mouse.  When you click on a menu item, the event generated is whatever
  1786. character or symbol has the binding which brought about that menu item.
  1787.    A single keymap can appear as multiple panes, if you explicitly
  1788. arrange for this.  The way to do this is to make a keymap for each
  1789. pane, then create a binding for each of those maps in the main keymap
  1790. of the menu.  Give each of these bindings a prompt string that starts
  1791. with `@'.  The rest of the prompt string becomes the name of the pane.
  1792. See the file `lisp/mouse.el' for an example of this.  Any ordinary
  1793. bindings with prompt strings are grouped into one pane, which appears
  1794. along with the other panes explicitly created for the submaps.
  1795.    You can also get multiple panes from separate keymaps.  The full
  1796. definition of a prefix key always comes from merging the definitions
  1797. supplied by the various active keymaps (minor modes, local, and
  1798. global).  When more than one of these keymaps is a menu, each of them
  1799. makes a separate pane or panes.
  1800. Menus and the Keyboard
  1801. ----------------------
  1802.    When a prefix key ending with a keyboard event (a character or
  1803. function key) has a definition that is a menu keymap, you can use the
  1804. keyboard to choose a menu item.
  1805.    Emacs displays the menu alternatives in the echo area.  If they don't
  1806. all fit at once, type SPC to see the next line of alternatives.  If you
  1807. keep typing SPC, you eventually get to the end of the menu and then
  1808. cycle around to the beginning again.
  1809.    When you have found the alternative you want, type the corresponding
  1810. character--the one whose binding is that alternative.
  1811.    In a menu intended for keyboard use, each menu item must clearly
  1812. indicate what character to type.  The best convention to use is to make
  1813. the character the first letter of the menu item prompt string.  That is
  1814. something users will understand without being told.
  1815. The Menu Bar
  1816. ------------
  1817.    Under X Windows, each frame can have a "menu bar"--a permanently
  1818. displayed menu stretching horizontally across the top of the frame.  The
  1819. items of the menu bar are the subcommands of the fake "function key"
  1820. `menu-bar', as defined by all the active keymaps.
  1821.    To add an item to the menu bar, invent a fake "function key" of your
  1822. own (let's call it KEY), and make a binding for the key sequence
  1823. `[menu-bar KEY]'.  Most often, the binding is a menu keymap, so that
  1824. pressing a button on the menu bar item leads to another menu.
  1825.    In order for a frame to display a menu bar, its `menu-bar-lines'
  1826. property must be greater than zero.  Emacs uses just one line for the
  1827. menu bar itself; if you specify more than one line, the other lines
  1828. serve to separate the menu bar from the windows in the frame.  We
  1829. recommend you try one or two as the `menu-bar-lines' value.
  1830. Keymaps
  1831. =======
  1832.    * The representation of keymaps has changed to support the new event
  1833.      types.  All keymaps now have the form `(keymap ELEMENT ELEMENT
  1834.      ...)'.  Each ELEMENT takes one of the following forms:
  1835.     PROMPT-STRING
  1836.           A string as an element of the keymap marks the keymap as a
  1837.           menu, and serves as the overall prompt string for it.
  1838.     `(KEY . BINDING)'
  1839.           A cons cell binds KEY to DEFINITION.  Here KEY may be any
  1840.           sort of event head--a character, a function key symbol, or a
  1841.           mouse button symbol.
  1842.     VECTOR
  1843.           A vector of 128 elements binds all the ASCII characters; the
  1844.           Nth element holds the binding for character number N.
  1845.     `(t . BINDING)'
  1846.           A cons cell whose CAR is `t' is a default binding; anything
  1847.           not bound by previous keymap elements is given BINDING as its
  1848.           binding.
  1849.           Default bindings are important because they allow a keymap to
  1850.           bind all possible events without having to enumerate all the
  1851.           possible function keys and mouse clicks, with all possible
  1852.           modifier prefixes.
  1853.           The function `lookup-key' (and likewise other functions for
  1854.           examining a key binding) normally report only explicit
  1855.           bindings of the specified key sequence; if there is none,
  1856.           they return `nil', even if there is a default binding that
  1857.           would apply to that key sequence if it were actually typed
  1858.           in.  However, these functions now take an optional argument
  1859.           ACCEPT-DEFAULTS which, if non-`nil', says to consider default
  1860.           bindings.
  1861.           Note that if a vector in the keymap binds an ASCII character
  1862.           to `nil' (thus making it "unbound"), the default binding does
  1863.           not apply to the character.  Think of the vector element as
  1864.           an explicit binding of `nil'.
  1865.           Note also that if the keymap for a minor or major mode
  1866.           contains a default binding, it completely masks out any
  1867.           lower-priority keymaps.
  1868.    * A keymap can now inherit from another keymap.  To do this, make the
  1869.      latter keymap the "tail" of the new one.  Such a keymap looks like
  1870.      this:
  1871.           (keymap BINDINGS... . OTHER-KEYMAP)
  1872.      The effect is that this keymap inherits all the bindings of
  1873.      OTHER-KEYMAP, but can add to them or override them with BINDINGS.
  1874.      Subsequent changes in the bindings of OTHER-KEYMAP *do* affect
  1875.      this keymap.
  1876.      For example,
  1877.           (setq my-mode-map (cons 'keymap text-mode-map))
  1878.      makes a keymap that by default inherits all the bindings of Text
  1879.      mode--whatever they may be at the time a key is looked up.  Any
  1880.      bindings made explicitly in `my-mode-map' override the bindings
  1881.      inherited from Text mode, however.
  1882.    * Minor modes can now have local keymaps.  Thus, a key can act a
  1883.      special way when a minor mode is in effect, and then revert to the
  1884.      major mode or global definition when the minor mode is no longer
  1885.      in effect.  The precedence of keymaps is now: minor modes (in no
  1886.      particular order), then major mode, and lastly the global map.
  1887.      The new `current-minor-mode-maps' function returns a list of all
  1888.      the keymaps of currently enabled minor modes, in the other that
  1889.      they apply.
  1890.      To set up a keymap for a minor mode, add an element to the alist
  1891.      `minor-mode-map-alist'.  Its elements look like this:
  1892.           (SYMBOL . KEYMAP)
  1893.      The keymap KEYMAP is active whenever SYMBOL has a non-`nil' value.
  1894.      Use for SYMBOL the variable which indicates whether the minor
  1895.      mode is enabled.
  1896.      When more than one minor mode keymap is active, their order of
  1897.      precedence is the order of `minor-mode-map-alist'.  But you should
  1898.      design minor modes so that they don't interfere with each other,
  1899.      and if you do this properly, the order will not matter.
  1900.      The function `minor-mode-key-binding' returns a list of all the
  1901.      active minor mode bindings of KEY.  More precisely, it returns an
  1902.      alist of pairs `(MODENAME . BINDING)', where MODENAME is the the
  1903.      variable which enables the minor mode, and BINDING is KEY's
  1904.      definition in that mode.  If KEY has no minor-mode bindings, the
  1905.      value is `nil'.
  1906.      If the first binding is a non-prefix, all subsequent bindings from
  1907.      other minor modes are omitted, since they would be completely
  1908.      shadowed.  Similarly, the list omits non-prefix bindings that
  1909.      follow prefix bindings.
  1910.    * The new function `copy-keymap' copies a keymap, producing a new
  1911.      keymap with the same key bindings in it.  If the keymap contains
  1912.      other keymaps directly, these subkeymaps are copied recursively.
  1913.      If you want to, you can define a prefix key with a binding that is
  1914.      a symbol whose function definition is another keymap.  In this
  1915.      case, `copy-keymap' does not look past the symbol; it doesn't copy
  1916.      the keymap inside the symbol.
  1917.    * `substitute-key-definition' now accepts an optional fourth
  1918.      argument, which is a keymap to use as a template.
  1919.           (substitute-key-definition olddef newdef keymap oldmap)
  1920.      finds all characters defined in OLDMAP as OLDDEF, and defines them
  1921.      in KEYMAP as NEWDEF.
  1922.      In addition, this function now operates recursively on the keymaps
  1923.      that define prefix keys within KEYMAP and OLDMAP.
  1924. Minibuffer Features
  1925. ===================
  1926.    The minibuffer input functions `read-from-minibuffer' and
  1927. `completing-read' have new features.
  1928. Minibuffer History
  1929. ------------------
  1930.    A new optional argument HIST specifies which history list to use.
  1931. If you specify a variable (a symbol), that variable is the history
  1932. list.  If you specify a cons cell `(VARIABLE . STARTPOS)', then
  1933. VARIABLE is the history list variable, and STARTPOS specifies the
  1934. initial history position (an integer, counting from zero which
  1935. specifies the most recent element of the history).
  1936.    If you specify STARTPOS, then you should also specify that element
  1937. of the history as INITIAL-INPUT, for consistency.
  1938.    If you don't specify HIST, then the default history list
  1939. `minibuffer-history' is used.  Other standard history lists that you
  1940. can use when appropriate include `query-replace-history',
  1941. `command-history', and `file-name-history'.
  1942.    The value of the history list variable is a list of strings, most
  1943. recent first.  You should set a history list variable to `nil' before
  1944. using it for the first time.
  1945.    `read-from-minibuffer' and `completing-read' add new elements to the
  1946. history list automatically, and provide commands to allow the user to
  1947. reuse items on the list.  The only thing your program needs to do to
  1948. use a history list is to initialize it and to pass its name to the
  1949. input functions when you wish.  But it is safe to modify the list by
  1950. hand when the minibuffer input functions are not using it.
  1951. Other Minibuffer Features
  1952. -------------------------
  1953.    The INITIAL argument to `read-from-minibuffer' and other minibuffer
  1954. input functions can now be a cons cell `(STRING . POSITION)'.  This
  1955. means to start off with STRING in the minibuffer, but put the cursor
  1956. POSITION characters from the beginning, rather than at the end.
  1957.    In `read-no-blanks-input', the INITIAL argument is now optional; if
  1958. it is omitted, the initial input string is the empty string.
  1959. New Features for Defining Commands
  1960. ==================================
  1961.    * If the interactive specification begins with `@', this means to
  1962.      select the window under the mouse.  This selection takes place
  1963.      before doing anything else with the command.
  1964.      You can use both `@' and `*' together in one command; they are
  1965.      processed in order of appearance.
  1966.    * Prompts in an interactive specification can incorporate the values
  1967.      of the preceding arguments.  Emacs replaces `%'-sequences (as used
  1968.      with the `format' function) in the prompt with the interactive
  1969.      arguments that have been read so far.  For example, a command with
  1970.      this interactive specification
  1971.           (interactive "sReplace: \nsReplace %s with: ")
  1972.      prompts for the first argument with `Replace: ', and then prompts
  1973.      for the second argument with `Replace FOO with: ', where FOO is
  1974.      the string read as the first argument.
  1975.    * If a command name has a property `enable-recursive-minibuffers'
  1976.      which is non-`nil', then the command can use the minibuffer to read
  1977.      arguments even if it is invoked from the minibuffer.  The
  1978.      minibuffer command `next-matching-history-element' (normally bound
  1979.      to `M-s' in the minibuffer) uses this feature.
  1980. New Features for Reading Input
  1981. ==============================
  1982.    * The function `set-input-mode' now takes four arguments.  The last
  1983.      argument is optional.  Their names are INTERRUPT, FLOW, META and
  1984.      QUIT.
  1985.      The argument INTERRUPT says whether to use interrupt-driven input.
  1986.      Non-`nil' means yes, and `nil' means no (use CBREAK mode).
  1987.      The argument FLOW says whether to enable terminal flow control.
  1988.      Non-`nil' means yes.
  1989.      The argument META controls support for input character codes above
  1990.      127.  If META is `t', Emacs converts characters with the 8th bit
  1991.      set into Meta characters.  If META is `nil', Emacs disregards the
  1992.      8th bit; this is necessary when the terminal uses it as a parity
  1993.      bit.  If META is neither `t' nor `nil', Emacs uses all 8 bits of
  1994.      input unchanged.  This is good for terminals using European 8-bit
  1995.      character sets.
  1996.      If QUIT non-`nil', it is the character to use for quitting.
  1997.      (Normally this is `C-g'.)
  1998.    * The variable `meta-flag' has been deleted; use `set-input-mode' to
  1999.      enable or disable support for a META key.  This change was made
  2000.      because `set-input-mode' can send the terminal the appropriate
  2001.      commands to enable or disable operation of the META key.
  2002.    * The new variable `extra-keyboard-modifiers' lets Lisp programs
  2003.      "press" the modifier keys on the keyboard.  The value is a bit
  2004.      mask:
  2005.     1
  2006.           The SHIFT key.
  2007.     2
  2008.           The LOCK key.
  2009.     4
  2010.           The CTL key.
  2011.     8
  2012.           The META key.
  2013.      When you use X windows, the program can press any of the modifier
  2014.      keys in this way.  Otherwise, only the CTL and META keys can be
  2015.      virtually pressed.
  2016.    * You can use the new function `keyboard-translate' to set up
  2017.      `keyboard-translate-table' conveniently.
  2018.    * Y-or-n questions using the `y-or-n-p' function now accept `C-]'
  2019.      (usually mapped to `abort-recursive-edit') as well as `C-g' to
  2020.      quit.
  2021.    * The variable `num-input-keys' is the total number of key sequences
  2022.      that the user has typed during this Emacs session.
  2023.    * A new Lisp variable, `function-key-map', holds a keymap which
  2024.      describes the character sequences sent by function keys on an
  2025.      ordinary character terminal.  This uses the same keymap data
  2026.      structure that is used to hold bindings of key sequences, but it
  2027.      has a different meaning: it specifies translations to make while
  2028.      reading a key sequence.
  2029.      If `function-key-map' "binds" a key sequence K to a vector V, then
  2030.      when K appears as a subsequence *anywhere* in a key sequence, it
  2031.      is replaced with V.
  2032.      For example, VT100 terminals send `ESC O P' when the "keypad" PF1
  2033.      key is pressed.  Thus, on a VT100, `function-key-map' should
  2034.      "bind" that sequence to `[pf1]'.  This specifies translation of
  2035.      `ESC O P' into PF1 anywhere in a key sequence.
  2036.      Thus, typing `C-c PF1' sends the character sequence `C-c ESC O P',
  2037.      but `read-key-sequence' translates this back into `C-c PF1', which
  2038.      it returns as the vector `[?\C-c PF1]'.
  2039.      Entries in `function-key-map' are ignored if they conflict with
  2040.      bindings made in the minor mode, local, or global keymaps.
  2041.      The value of `function-key-map' is usually set up automatically
  2042.      according to the terminal's Terminfo or Termcap entry, and the
  2043.      terminal-specific Lisp files.  Emacs comes with a number of
  2044.      terminal-specific files for many common terminals; their main
  2045.      purpose is to make entries in `function-key-map' beyond those that
  2046.      can be deduced from Termcap and Terminfo.
  2047.    * The variable `key-translation-map' works like `function-key-map'
  2048.      except for two things:
  2049.         * `key-translation-map' goes to work after `function-key-map' is
  2050.           finished; it receives the results of translation by
  2051.           `function-key-map'.
  2052.         * `key-translation-map' overrides actual key bindings.
  2053.      The intent of `key-translation-map' is for users to map one
  2054.      character set to another, including ordinary characters normally
  2055.      bound to `self-insert-command'.
  2056. New Syntax Table Features
  2057. =========================
  2058.    * You can use two new functions to move across characters in certain
  2059.      syntax classes.
  2060.      `skip-syntax-forward' moves point forward across characters whose
  2061.      syntax classes are mentioned in its first argument, a string.  It
  2062.      stops when it encounters the end of the buffer, or position LIM
  2063.      (the optional second argument), or a character it is not supposed
  2064.      to skip.  The function `skip-syntax-backward' is similar but moves
  2065.      backward.
  2066.    * The new function `forward-comment' moves point by comments.  It
  2067.      takes one argument, COUNT; it moves point forward across COUNT
  2068.      comments (backward, if COUNT is negative).  If it finds anything
  2069.      other than a comment or whitespace, it stops, leaving point at the
  2070.      far side of the last comment found.  It also stops after
  2071.      satisfying COUNT.
  2072.    * The new variable `words-include-escapes' affects the behavior of
  2073.      `forward-word' and everything that uses it.  If it is non-`nil',
  2074.      then characters in the "escape" and "character quote" syntax
  2075.      classes count as part of words.
  2076.    * There are two new syntax flags for use in syntax tables.
  2077.         - The prefix flag.
  2078.           The `p' flag identifies additional "prefix characters" in Lisp
  2079.           syntax.  You can set this flag with `modify-syntax-entry' by
  2080.           including the letter `p' in the syntax specification.
  2081.           These characters are treated as whitespace when they appear
  2082.           between expressions.  When they appear withing an expression,
  2083.           they are handled according to their usual syntax codes.
  2084.           The function `backward-prefix-chars' moves back over these
  2085.           characters, as well as over characters whose primary syntax
  2086.           class is prefix (`'').
  2087.         - The `b' comment style flag.
  2088.           Emacs can now supports two comment styles simultaneously.
  2089.           (This is for the sake of C++.)  More specifically, it can
  2090.           recognize two different comment-start sequences.  Both must
  2091.           share the same first character; only the second character may
  2092.           differ.  Mark the second character of the `b'-style comment
  2093.           start sequence with the `b' flag.  You can set this flag with
  2094.           `modify-syntax-entry' by including the letter `b' in the
  2095.           syntax specification.
  2096.           The two styles of comment can have different comment-end
  2097.           sequences.  A comment-end sequence (one or two characters)
  2098.           applies to the `b' style if its first character has the `b'
  2099.           flag set; otherwise, it applies to the `a' style.
  2100.           The appropriate comment syntax settings for C++ are as
  2101.           follows:
  2102.          `/'
  2103.                `124b'
  2104.          `*'
  2105.                `23'
  2106.          newline
  2107.                `>b'
  2108.           Thus `/*' is a comment-start sequence for `a' style, `//' is
  2109.           a comment-start sequence for `b' style, `*/' is a comment-end
  2110.           sequence for `a' style, and newline is a comment-end sequence
  2111.           for `b' style.
  2112. The Case Table
  2113. ==============
  2114.    You can customize case conversion using the new case table feature.
  2115. A case table is a collection of strings that specifies the mapping
  2116. between upper case and lower case letters.  Each buffer has its own
  2117. case table.  You need a case table if you are using a language which
  2118. has letters that are not standard ASCII letters.
  2119.    A case table is a list of this form:
  2120.      (DOWNCASE UPCASE CANONICALIZE EQUIVALENCES)
  2121. where each element is either `nil' or a string of length 256.  The
  2122. element DOWNCASE says how to map each character to its lower-case
  2123. equivalent.  The element UPCASE maps each character to its upper-case
  2124. equivalent.  If lower and upper case characters are in 1-1
  2125. correspondence, use `nil' for UPCASE; then Emacs deduces the upcase
  2126. table from DOWNCASE.
  2127.    For some languages, upper and lower case letters are not in 1-1
  2128. correspondence.  There may be two different lower case letters with the
  2129. same upper case equivalent.  In these cases, you need to specify the
  2130. maps for both directions.
  2131.    The element CANONICALIZE maps each character to a canonical
  2132. equivalent; any two characters that are related by case-conversion have
  2133. the same canonical equivalent character.
  2134.    The element EQUIVALENCES is a map that cyclicly permutes each
  2135. equivalence class (of characters with the same canonical equivalent).
  2136.    You can provide `nil' for both CANONICALIZE and EQUIVALENCES, in
  2137. which case both are deduced from DOWNCASE and UPCASE.
  2138.    Here are the functions for working with case tables:
  2139.    `case-table-p' is a predicate that says whether a Lisp object is a
  2140. valid case table.
  2141.    `set-standard-case-table' takes one argument and makes that argument
  2142. the case table for new buffers created subsequently.
  2143. `standard-case-table' returns the current value of the new buffer case
  2144. table.
  2145.    `current-case-table' returns the case table of the current buffer.
  2146. `set-case-table' sets the current buffer's case table to the argument.
  2147.    `set-case-syntax-pair' is a convenient function for specifying a
  2148. pair of letters, upper case and lower case.  Call it with two arguments,
  2149. the upper case letter and the lower case letter.  It modifies the
  2150. standard case table and a few syntax tables that are predefined in
  2151. Emacs.  This function is intended as a subroutine for packages that
  2152. define non-ASCII character sets.
  2153.    Load the library `iso-syntax' to set up the syntax and case table for
  2154. the 256 bit ISO Latin 1 character set.
  2155. New Features for Dealing with Buffers
  2156. =====================================
  2157.    * The new function `buffer-modified-tick' returns a buffer's
  2158.      modification-count that ticks every time the buffer is modified.
  2159.      It takes one optional argument, which is the buffer you want to
  2160.      examine.  If the argument is `nil' (or omitted), the current
  2161.      buffer is used.
  2162.    * `buffer-disable-undo' is a new name for the function formerly
  2163.      known as `buffer-flush-undo'.  This turns off recording of undo
  2164.      information in the buffer given as argument.
  2165.    * The new function `generate-new-buffer-name' chooses a name that
  2166.      would be unique for a new buffer--but does not create the buffer.
  2167.      Give it one argument, a starting name.  It produces a name not in
  2168.      use for a buffer by appending a number inside of `<...>'.
  2169.    * The function `rename-buffer' now takes an optional second argument
  2170.      which tells it that if the specified new name corresponds to an
  2171.      existing buffer, it should use `generate-new-buffer-name' to
  2172.      modify the name to be unique, rather than signaling an error.
  2173.      `rename-buffer' now returns the name to which the buffer was
  2174.      renamed.
  2175.    * The function `list-buffers' now looks at the local variable
  2176.      `list-buffers-directory' in each non-file-visiting buffer, and
  2177.      shows its value where the file would normally go.  Dired sets this
  2178.      variable in each Dired buffer, so the buffer list now shows which
  2179.      directory each Dired buffer is editing.
  2180.    * The function `other-buffer' now takes an optional second argument
  2181.      VISIBLE-OK which, if non-`nil', indicates that buffers currently
  2182.      being displayed in windows may be returned even if there are other
  2183.      buffers not visible.  Normally, `other-buffer' returns a currently
  2184.      visible buffer only as a last resort, if there are no suitable
  2185.      nonvisible buffers.
  2186.    * The hook `kill-buffer-hook' now runs whenever a buffer is killed.
  2187. Local Variables Features
  2188. ========================
  2189.    * If a local variable name has a non-`nil' `permanent-local'
  2190.      property, then `kill-all-local-variables' does not kill it.  Such
  2191.      local variables are "permanent"--they remain unchanged even if you
  2192.      select a different major mode.
  2193.      Permanent locals are useful when they have to do with where the
  2194.      file came from or how to save it, rather than with how to edit the
  2195.      contents.
  2196.    * The function `make-local-variable' now never changes the value of
  2197.      the variable that it makes local.  If the variable had no value
  2198.      before, it still has no value after becoming local.
  2199.    * The new function `default-boundp' tells you whether a variable has
  2200.      a default value (as opposed to being unbound in its default
  2201.      value).  If `(default-boundp 'foo)' returns `nil', then
  2202.      `(default-value 'foo)' would get an error.
  2203.      `default-boundp' is to `default-value' as `boundp' is to
  2204.      `symbol-value'.
  2205.    * The special forms `defconst' and `defvar', when the variable is
  2206.      local in the current buffer, now set the variable's default value
  2207.      rather than its local value.
  2208. New Features for Subprocesses
  2209. =============================
  2210.    * `call-process' and `call-process-region' now return a value that
  2211.      indicates how the synchronous subprocess terminated.  It is either
  2212.      a number, which is the exit status of a process, or a signal name
  2213.      represented as a string.
  2214.    * `process-status' now returns `open' and `closed' as the status
  2215.      values for network connections.
  2216.    * The standard asynchronous subprocess features work on VMS now, and
  2217.      the special VMS asynchronous subprocess functions have been
  2218.      deleted.
  2219.    * You can use the transaction queue feature for more convenient
  2220.      communication with subprocesses using transactions.
  2221.      Call `tq-create' to create a transaction queue communicating with a
  2222.      specified process.  Then you can call `tq-enqueue' to send a
  2223.      transaction.  `tq-enqueue' takes these five arguments:
  2224.           (tq-enqueue TQ QUESTION REGEXP CLOSURE FN)
  2225.      TQ is the queue to use.  (Specifying the queue has the effect of
  2226.      specifying the process to talk to.)  The argument QUESTION is the
  2227.      outgoing message which starts the transaction.  The argument FN is
  2228.      the function to call when the corresponding answer comes back; it
  2229.      is called with two arguments: CLOSURE, and the answer received.
  2230.      The argument REGEXP is a regular expression to match the entire
  2231.      answer; that's how `tq-enqueue' tells where the answer ends.
  2232.      Call `tq-close' to shut down a transaction queue and terminate its
  2233.      subprocess.
  2234.    * The function `signal-process' sends a signal to process PID, which
  2235.      need not be a child of Emacs.  The second argument SIGNAL
  2236.      specifies which signal to send; it should be an integer.
  2237. New Features for Dealing with Times And Time Delays
  2238. ===================================================
  2239.    * The new function `current-time' returns the system's time value as
  2240.      a list of three integers: `(HIGH LOW MICROSEC)'.  The integers
  2241.      HIGH and LOW combine to give the number of seconds since 0:00
  2242.      January 1, 1970, which is HIGH * 2**16 + LOW.
  2243.      MICROSEC gives the microseconds since the start of the current
  2244.      second (or 0 for systems that return time only on the resolution
  2245.      of a second).
  2246.    * The function `current-time-string' accepts an optional argument
  2247.      TIME-VALUE.  If given, this specifies a time to format instead of
  2248.      the current time.  The argument should be a cons cell containing
  2249.      two integers, or a list whose first two elements are integers.
  2250.      Thus, you can use times obtained from `current-time' (see above)
  2251.      and from `file-attributes'.
  2252.    * You can now find out the user's time zone using
  2253.      `current-time-zone'.
  2254.      The value has the form `(OFFSET NAME)'.  Here OFFSET is an integer
  2255.      giving the number of seconds ahead of UTC (east of Greenwich).  A
  2256.      negative value means west of Greenwich.  The second element, NAME
  2257.      is a string giving the name of the time zone.  Both elements
  2258.      change when daylight savings time begins or ends; if the user has
  2259.      specified a time zone that does not use a seasonal time
  2260.      adjustment, then the value is constant through time.
  2261.      If the operating system doesn't supply all the information
  2262.      necessary to compute the value, both elements of the list are
  2263.      `nil'.
  2264.      The optional argument TIME-VALUE, if given, specifies a time to
  2265.      analyze instead of the current time.  The argument should be a
  2266.      cons cell containing two integers, or a list whose first two
  2267.      elements are integers.  Thus, you can use times obtained from
  2268.      `current-time' and from `file-attributes'.
  2269.    * `sit-for', `sleep-for' now let you specify the time period in
  2270.      milliseconds as well as in seconds.  The first argument gives the
  2271.      number of seconds, as before, and the optional second argument
  2272.      gives additional milliseconds.  The time periods specified by
  2273.      these two arguments are added together.
  2274.      Not all systems support this; you get an error if you specify
  2275.      nonzero milliseconds and it isn't supported.
  2276.      `sit-for' also accepts an optional third argument NODISP.  If this
  2277.      is non-`nil', `sit-for' does not redisplay.  It still waits for
  2278.      the specified time or until input is available.
  2279.    * `accept-process-output' now accepts a timeout specified by optional
  2280.      second and third arguments.  The second argument specifies the
  2281.      number of seconds, while the third specifies the number of
  2282.      milliseconds.  The time periods specified by these two arguments
  2283.      are added together.
  2284.      Not all systems support this; you get an error if you specify
  2285.      nonzero milliseconds and it isn't supported.
  2286.      The function returns `nil' if the timeout expired before output
  2287.      arrived, or non-`nil' if it did get some output.
  2288.    * You can set up a timer to call a function at a specified future
  2289.      time.  To do so, call `run-at-time', like this:
  2290.           (run-at-time TIME REPEAT FUNCTION ARGS...)
  2291.      Here, TIME is a string saying when to call the function.  The
  2292.      argument FUNCTION is the function to call later, and ARGS are the
  2293.      arguments to give it when it is called.
  2294.      The argument REPEAT specifies how often to repeat the call.  If
  2295.      REPEAT is `nil', there are no repetitions; FUNCTION is called just
  2296.      once, at TIME.  If REPEAT is an integer, it specifies a repetition
  2297.      period measured in seconds.
  2298.      Absolute times may be specified in a wide variety of formats; The
  2299.      form `HOUR:MIN:SEC TIMEZONE MONTH/DAY/YEAR', where all fields are
  2300.      numbers, works; the format that `current-time-string' returns is
  2301.      also allowed.
  2302.      To specify a relative time, use numbers followed by units.  For
  2303.      example:
  2304.     `1 min'
  2305.           denotes 1 minute from now.
  2306.     `1 min 5 sec'
  2307.           denotes 65 seconds from now.
  2308.     `1 min 2 sec 3 hour 4 day 5 week 6 fortnight 7 month 8 year'
  2309.           denotes exactly 103 months, 123 days, and 10862 seconds from
  2310.           now.
  2311.      If TIME is an integer, that specifies a relative time measured in
  2312.      seconds.
  2313.    To cancel the requested future action, pass the value that
  2314. `run-at-time' returned to the function `cancel-timer'.
  2315. Profiling Lisp Programs
  2316. =======================
  2317.    You can now make execution-time profiles of Emacs Lisp programs using
  2318. the `profile' library.  See the file `profile.el' for instructions; if
  2319. you have written a Lisp program big enough to be worth profiling, you
  2320. can surely understand them.
  2321. New Features for Lisp Debuggers
  2322. ===============================
  2323.    * You can now specify which kinds of errors should invoke the Lisp
  2324.      debugger by setting the variable `debug-on-error' to a list of
  2325.      error conditions.  For example, if you set it to the list
  2326.      `(void-variable)', then only errors about a variable that has no
  2327.      value invoke the debugger.
  2328.    * The variable `command-debug-status' is used by Lisp debuggers.  It
  2329.      records the debugging status of current interactive command.  Each
  2330.      time a command is called interactively, this variable is bound to
  2331.      `nil'.  The debugger can set this variable to leave information for
  2332.      future debugger invocations during the same command.
  2333.      The advantage of this variable over some other variable in the
  2334.      debugger itself is that the data will not be visible for any other
  2335.      command invocation.
  2336.    * The function `backtrace-frame' is intended for use in Lisp
  2337.      debuggers.  It returns information about what a frame on the Lisp
  2338.      call stack is doing.  You specify one argument, which is the
  2339.      number of stack frames to count up from the current execution
  2340.      point.
  2341.      If that stack frame has not evaluated the arguments yet (or is a
  2342.      special form), the value is `(nil FUNCTION ARG-FORMS...)'.
  2343.      If that stack frame has evaluated its arguments and called its
  2344.      function already, the value is `(t FUNCTION ARG-VALUES...)'.
  2345.      In the return value, FUNCTION is whatever was supplied as CAR of
  2346.      evaluated list, or a `lambda' expression in the case of a macro
  2347.      call.  If the function has a `&rest' argument, that is represented
  2348.      as the tail of the list ARG-VALUES.
  2349.      If the argument is out of range, `backtrace-frame' returns `nil'.
  2350. Memory Allocation Changes
  2351. =========================
  2352.    The list that `garbage-collect' returns now has one additional
  2353. element.  This is a cons cell containing two numbers.  It gives
  2354. information about the number of used and free floating point numbers,
  2355. much as the first element gives such information about the number of
  2356. used and free cons cells.
  2357.    The new function `memory-limit' returns an indication of the last
  2358. address allocated by Emacs.  More precisely, it returns that address
  2359. divided by 1024.  You can use this to get a general idea of how your
  2360. actions affect the memory usage.
  2361. Hook Changes
  2362. ============
  2363.    * Expanding an abbrev first runs the new hook
  2364.      `pre-abbrev-expand-hook'.
  2365.    * The editor command loop runs the normal hook `pre-command-hook'
  2366.      before each command, and runs `post-command-hook' after each
  2367.      command.
  2368.    * Auto-saving runs the new hook `auto-save-hook' before actually
  2369.      starting to save any files.
  2370.    * The new variable `revert-buffer-insert-file-contents-function'
  2371.      holds a function that `revert-buffer' now uses to read in the
  2372.      contents of the reverted buffer--instead of calling
  2373.      `insert-file-contents'.
  2374.    * The variable `lisp-indent-hook' has been renamed to
  2375.      `lisp-indent-function'.
  2376.    * The variable `auto-fill-hook' has been renamed to
  2377.      `auto-fill-function'.
  2378.    * The variable `blink-paren-hook' has been renamed to
  2379.      `blink-paren-function'.
  2380.    * The variable `temp-buffer-show-hook' has been renamed to
  2381.      `temp-buffer-show-function'.
  2382.    * The variable `suspend-hook' is now a normal hook.  It used to be a
  2383.      special kind of hook; its value had to be a single function, and
  2384.      if the function returned a non-`nil' value, then suspension was
  2385.      inhibited.
  2386.    * The new function `add-hook' provides a handy way to add a function
  2387.      to a hook variable.  For example,
  2388.           (add-hook 'text-mode-hook 'my-text-hook-function)
  2389.      arranges to call `my-text-hook-function' when entering Text mode
  2390.      or related modes.
  2391.      `add-hook' takes an optional third argument which says to add the
  2392.      new hook function at the end of the list (normally, it goes at the
  2393.      beginning).
  2394.